summaryrefslogtreecommitdiff
path: root/libcaja-private
diff options
context:
space:
mode:
authormonsta <[email protected]>2017-04-18 11:59:18 +0300
committermonsta <[email protected]>2017-04-18 11:59:18 +0300
commitf6e7ceecff38f072a570abd5a49d93dbc5c44691 (patch)
tree2a9a5391c835353b0b87f02c75e8f3c040eae0aa /libcaja-private
parent21668de5806ce71ceecd7470b717412bfa3bd01c (diff)
downloadcaja-f6e7ceecff38f072a570abd5a49d93dbc5c44691.tar.bz2
caja-f6e7ceecff38f072a570abd5a49d93dbc5c44691.tar.xz
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
Diffstat (limited to 'libcaja-private')
-rw-r--r--libcaja-private/caja-icon-canvas-item.c4
1 files changed, 2 insertions, 2 deletions
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)