[nautilus] canvas-item: use atk_component_get_extents()



commit bd73a8ee91610310c3b0dfdaa69465fc48ecac8f
Author: Ernestas Kulik <ernestask src gnome org>
Date:   Sat Apr 23 13:43:07 2016 +0300

    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

 src/nautilus-canvas-item.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nautilus-canvas-item.c b/src/nautilus-canvas-item.c
index 547b9fe..576e0a6 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) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]