summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErnestas Kulik <ernestask@src.gnome.org>2016-04-23 13:43:07 +0300
committerErnestas Kulik <ernestask@src.gnome.org>2016-05-03 13:16:55 +0300
commitbd73a8ee91610310c3b0dfdaa69465fc48ecac8f (patch)
treeaec11c93aa7305b5300b4a82568bb3337990e234
parent225f2cf768c745fe13c9d7e90d340fd2a15d6c5b (diff)
downloadnautilus-bd73a8ee91610310c3b0dfdaa69465fc48ecac8f.tar.gz
canvas-item: use atk_component_get_extents()
atk_component_get_position() has been deprecated since ATK 2.12 and using atk_component_get_extents() is recommended. This commit replaces calls to the deprecated function. https://bugzilla.gnome.org/show_bug.cgi?id=762236
-rw-r--r--src/nautilus-canvas-item.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nautilus-canvas-item.c b/src/nautilus-canvas-item.c
index 547b9fe10..576e0a6fe 100644
--- a/src/nautilus-canvas-item.c
+++ b/src/nautilus-canvas-item.c
@@ -2255,7 +2255,7 @@ nautilus_canvas_item_accessible_get_image_position
}
}
}
- atk_component_get_position (ATK_COMPONENT (image), x, y, coord_type);
+ atk_component_get_extents (ATK_COMPONENT (image), x, y, NULL, NULL, coord_type);
*x += x_offset;
*y += y_offset;
}
@@ -2410,7 +2410,7 @@ nautilus_canvas_item_accessible_get_character_extents (AtkText *text,
gboolean have_editable;
gint text_offset, pix_height;
- atk_component_get_position (ATK_COMPONENT (text), &pos_x, &pos_y, coords);
+ atk_component_get_extents (ATK_COMPONENT (text), &pos_x, &pos_y, NULL, NULL, coords);
item = NAUTILUS_CANVAS_ITEM (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text)));
if (item->details->pixbuf) {