gtk: use component extents for accessible positions

This commit is contained in:
Daemonratte 2026-05-15 10:33:12 +02:00
commit 839ed23770
2 changed files with 3 additions and 3 deletions

View file

@ -7917,7 +7917,7 @@ gtk_icon_view_item_accessible_image_get_image_position (AtkImage *image,
if (atk_state_set_contains_state (item->state_set, ATK_STATE_DEFUNCT))
return;
atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL, coord_type);
if (get_pixbuf_box (GTK_ICON_VIEW (item->widget), item->item, &box))
{
@ -8601,7 +8601,7 @@ gtk_icon_view_item_accessible_get_extents (AtkComponent *component,
if (gtk_icon_view_item_accessible_is_showing (item))
{
parent_obj = gtk_widget_get_accessible (item->widget);
atk_component_get_position (ATK_COMPONENT (parent_obj), &l_x, &l_y, coord_type);
atk_component_get_extents (ATK_COMPONENT (parent_obj), &l_x, &l_y, NULL, NULL, coord_type);
*x = l_x + item->item->x;
*y = l_y + item->item->y;
}

View file

@ -467,7 +467,7 @@ gail_notebook_page_get_extents (AtkComponent *component,
child = atk_object_ref_accessible_child (ATK_OBJECT (component), 0);
gail_return_if_fail (child);
atk_component_get_position (ATK_COMPONENT (child), x, y, coord_type);
atk_component_get_extents (ATK_COMPONENT (child), x, y, NULL, NULL, coord_type);
g_object_unref (child);
}
else