summaryrefslogtreecommitdiff
path: root/gtk/a11y
diff options
context:
space:
mode:
authorJonas Danielsson <jonas@threetimestwo.org>2014-03-29 21:48:43 +0100
committerMatthias Clasen <mclasen@redhat.com>2014-04-01 21:40:23 -0400
commite7962f5871c15e510415f2d1cfa1bbbdd5a9da3f (patch)
tree29434dc2bcf2fbf9491fb7578961e54558597d7a /gtk/a11y
parentb423b88580f6fc49a481bdfe360287a8c607b0ef (diff)
downloadgtk+-e7962f5871c15e510415f2d1cfa1bbbdd5a9da3f.tar.gz
a11y: atk_component_get_position is deprecated
Switch to using atk_component_get_extents instead. https://bugzilla.gnome.org/show_bug.cgi?id=727313
Diffstat (limited to 'gtk/a11y')
-rw-r--r--gtk/a11y/gtkbuttonaccessible.c3
-rw-r--r--gtk/a11y/gtkentryaccessible.c3
-rw-r--r--gtk/a11y/gtkiconviewaccessible.c6
-rw-r--r--gtk/a11y/gtkimageaccessible.c3
-rw-r--r--gtk/a11y/gtkimagecellaccessible.c3
-rw-r--r--gtk/a11y/gtknotebookpageaccessible.c3
6 files changed, 14 insertions, 7 deletions
diff --git a/gtk/a11y/gtkbuttonaccessible.c b/gtk/a11y/gtkbuttonaccessible.c
index 3ba94d30cf..57d4286710 100644
--- a/gtk/a11y/gtkbuttonaccessible.c
+++ b/gtk/a11y/gtkbuttonaccessible.c
@@ -405,7 +405,8 @@ gtk_button_accessible_get_image_position (AtkImage *image,
if (button_image != NULL)
{
obj = gtk_widget_get_accessible (button_image);
- atk_component_get_position (ATK_COMPONENT (obj), x, y, coord_type);
+ atk_component_get_extents (ATK_COMPONENT (obj), x, y, NULL, NULL,
+ coord_type);
}
else
{
diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c
index 981bc800d9..c19be104ba 100644
--- a/gtk/a11y/gtkentryaccessible.c
+++ b/gtk/a11y/gtkentryaccessible.c
@@ -327,7 +327,8 @@ gtk_entry_icon_accessible_get_position (AtkComponent *component,
GtkWidget *widget;
*x = G_MININT;
- atk_component_get_position (ATK_COMPONENT (icon->entry), x, y, coord_type);
+ atk_component_get_extents (ATK_COMPONENT (icon->entry), x, y, NULL, NULL,
+ coord_type);
if (*x == G_MININT)
return;
diff --git a/gtk/a11y/gtkiconviewaccessible.c b/gtk/a11y/gtkiconviewaccessible.c
index a6468705bf..eb85522d87 100644
--- a/gtk/a11y/gtkiconviewaccessible.c
+++ b/gtk/a11y/gtkiconviewaccessible.c
@@ -313,7 +313,8 @@ gtk_icon_view_item_accessible_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))
{
@@ -597,7 +598,8 @@ 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->cell_area.x;
*y = l_y + item->item->cell_area.y;
}
diff --git a/gtk/a11y/gtkimageaccessible.c b/gtk/a11y/gtkimageaccessible.c
index 3a17a7fcb4..08ab5189d3 100644
--- a/gtk/a11y/gtkimageaccessible.c
+++ b/gtk/a11y/gtkimageaccessible.c
@@ -260,7 +260,8 @@ gtk_image_accessible_get_image_position (AtkImage *image,
gint *y,
AtkCoordType coord_type)
{
- atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
+ atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL,
+ coord_type);
}
static void
diff --git a/gtk/a11y/gtkimagecellaccessible.c b/gtk/a11y/gtkimagecellaccessible.c
index 7851bb1455..152c456c26 100644
--- a/gtk/a11y/gtkimagecellaccessible.c
+++ b/gtk/a11y/gtkimagecellaccessible.c
@@ -83,7 +83,8 @@ gtk_image_cell_accessible_get_image_position (AtkImage *image,
gint *y,
AtkCoordType coord_type)
{
- atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
+ atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL,
+ coord_type);
}
static void
diff --git a/gtk/a11y/gtknotebookpageaccessible.c b/gtk/a11y/gtknotebookpageaccessible.c
index 249d19cf49..a5a2dad285 100644
--- a/gtk/a11y/gtknotebookpageaccessible.c
+++ b/gtk/a11y/gtknotebookpageaccessible.c
@@ -316,7 +316,8 @@ gtk_notebook_page_accessible_get_extents (AtkComponent *component,
if (!child)
return;
- 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