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:
Carlos Garnacho 2019-01-29 12:00:07 +01:00
parent 95404c8a51
commit a15325ef44

View File

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