forked from AuroraMiddleware/gtk
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:
parent
77769a52b3
commit
6235b12ca4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user