entry: Fix get_text_allocation

These should be reported in GtkEntry coordinates, so relative to the
entry's origin. This fixes entrys with top/bottom padding applied.
This commit is contained in:
Timm Bäder 2018-01-10 10:49:13 +01:00
parent 77769a52b3
commit 6235b12ca4

View File

@ -3076,9 +3076,10 @@ gtk_entry_get_text_allocation (GtkEntry *entry,
{
GtkEntryPrivate *priv = entry->priv;
gtk_widget_get_own_allocation (GTK_WIDGET (entry), allocation);
allocation->x = priv->text_x;
allocation->y = 0;
allocation->width = priv->text_width;
allocation->height = gtk_widget_get_height (GTK_WIDGET (entry));
}
static void