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.
This commit is contained in:
Dan Winship 2011-08-10 15:19:56 -04:00
parent 2ba9c4b4a7
commit c4a5c99074
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;