From f6e7ceecff38f072a570abd5a49d93dbc5c44691 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 18 Apr 2017 11:59:18 +0300 Subject: use atk_component_get_extents instead of atk_component_get_position fixes build warning about deprecation ported from: https://git.gnome.org/browse/nautilus/commit/?id=bd73a8ee91610310c3b0dfdaa69465fc48ecac8f --- libcaja-private/caja-icon-canvas-item.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libcaja-private/caja-icon-canvas-item.c') diff --git a/libcaja-private/caja-icon-canvas-item.c b/libcaja-private/caja-icon-canvas-item.c index c159ba83..397420e9 100644 --- a/libcaja-private/caja-icon-canvas-item.c +++ b/libcaja-private/caja-icon-canvas-item.c @@ -3174,7 +3174,7 @@ caja_icon_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; } @@ -3350,7 +3350,7 @@ caja_icon_canvas_item_accessible_get_character_extents (AtkText *text, gboolean have_editable; gint text_offset; - 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 = CAJA_ICON_CANVAS_ITEM (atk_gobject_accessible_get_object (ATK_GOBJECT_ACCESSIBLE (text))); if (item->details->pixbuf) -- cgit v1.2.1