forked from AuroraMiddleware/gtk
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:
parent
2ba9c4b4a7
commit
c4a5c99074
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user