[vte] a11y: Use non-deprecated function to get position



commit 7f765481c24765dfb3d02932666686103e2a4e07
Author: Christian Persch <chpe gnome org>
Date:   Wed Apr 9 20:22:36 2014 +0200

    a11y: Use non-deprecated function to get position

 src/vteaccess.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/vteaccess.c b/src/vteaccess.c
index 551197a..1c9603a 100644
--- a/src/vteaccess.c
+++ b/src/vteaccess.c
@@ -1320,13 +1320,13 @@ vte_terminal_accessible_get_character_extents(AtkText *text, gint offset,
        VteTerminalAccessiblePrivate *priv = _vte_terminal_accessible_get_instance_private(accessible);
        VteTerminal *terminal;
        glong char_width, char_height;
-       gint base_x, base_y;
+       gint base_x, base_y, w, h;
 
        vte_terminal_accessible_update_private_data_if_needed(accessible,
                                                              NULL, NULL);
        terminal = VTE_TERMINAL (gtk_accessible_get_widget (GTK_ACCESSIBLE (text)));
 
-       atk_component_get_position (ATK_COMPONENT (text), &base_x, &base_y, coords);
+       atk_component_get_extents (ATK_COMPONENT (text), &base_x, &base_y, &w, &h, coords);
        xy_from_offset (priv, offset, x, y);
        char_width = vte_terminal_get_char_width (terminal);
        char_height = vte_terminal_get_char_height (terminal);
@@ -1359,13 +1359,13 @@ vte_terminal_accessible_get_offset_at_point(AtkText *text,
        VteTerminalAccessiblePrivate *priv = _vte_terminal_accessible_get_instance_private(accessible);
        VteTerminal *terminal;
        glong char_width, char_height;
-       gint base_x, base_y;
+       gint base_x, base_y, w, h;
 
        vte_terminal_accessible_update_private_data_if_needed(accessible,
                                                              NULL, NULL);
        terminal = VTE_TERMINAL (gtk_accessible_get_widget (GTK_ACCESSIBLE (text)));
 
-       atk_component_get_position (ATK_COMPONENT (text), &base_x, &base_y, coords);
+       atk_component_get_extents (ATK_COMPONENT (text), &base_x, &base_y, &w, &h, coords);
         /* FIXME: use _vte_terminal_xy_to_grid */
        char_width = vte_terminal_get_char_width (terminal);
        char_height = vte_terminal_get_char_height (terminal);


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