forked from AuroraMiddleware/gtk
gtkentry: Fix text handle coordinates calculation
The text allocation is already in widget-local coordinates, involving the GtkAllocation here is not right.
This commit is contained in:
parent
95404c8a51
commit
a15325ef44
@ -3536,12 +3536,10 @@ gtk_entry_move_handle (GtkEntry *entry,
|
||||
}
|
||||
else
|
||||
{
|
||||
GtkAllocation allocation;
|
||||
GdkRectangle rect;
|
||||
|
||||
gtk_widget_get_allocation (GTK_WIDGET (entry), &allocation);
|
||||
rect.x = x + text_allocation.x - allocation.x;
|
||||
rect.y = y + text_allocation.y - allocation.y;
|
||||
rect.x = x + text_allocation.x;
|
||||
rect.y = y + text_allocation.y;
|
||||
rect.width = 1;
|
||||
rect.height = height;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user