[gtk+] Fix cut-and-paste error in GtkEntryAccessible/GtkLabelAccessible



commit c4a5c99074ee7df298946cbd32649cff0da0cd09
Author: Dan Winship <danw gnome org>
Date:   Wed Aug 10 15:19:56 2011 -0400

    Fix cut-and-paste error in GtkEntryAccessible/GtkLabelAccessible
    
    The y position of the character depends on the window's y coordinate,
    not its x coordinate.

 gtk/a11y/gtkentryaccessible.c |    2 +-
 gtk/a11y/gtklabelaccessible.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/a11y/gtkentryaccessible.c b/gtk/a11y/gtkentryaccessible.c
index 6c4180a..e0ff6df 100644
--- a/gtk/a11y/gtkentryaccessible.c
+++ b/gtk/a11y/gtkentryaccessible.c
@@ -442,7 +442,7 @@ gtk_entry_accessible_get_character_extents (AtkText      *text,
   gdk_window_get_origin (window, &x_window, &y_window);
 
   *x = x_window + x_layout + char_rect.x;
-  *y = x_window + y_layout + char_rect.y;
+  *y = y_window + y_layout + char_rect.y;
   *width = char_rect.width;
   *height = char_rect.height;
 
diff --git a/gtk/a11y/gtklabelaccessible.c b/gtk/a11y/gtklabelaccessible.c
index b794385..fd291d7 100644
--- a/gtk/a11y/gtklabelaccessible.c
+++ b/gtk/a11y/gtklabelaccessible.c
@@ -574,7 +574,7 @@ gtk_label_accessible_get_character_extents (AtkText      *text,
   gdk_window_get_origin (window, &x_window, &y_window);
 
   *x = x_window + x_layout + char_rect.x;
-  *y = x_window + y_layout + char_rect.y;
+  *y = y_window + y_layout + char_rect.y;
   *width = char_rect.width;
   *height = char_rect.height;
 



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