entry: Fix baseline alignment

Since we only look at priv->text_baseline later on, it would be useful
to actually set it to a useful value.
This commit is contained in:
Timm Bäder 2017-07-04 15:22:58 +02:00 committed by Matthias Clasen
parent 0726148ca5
commit 55389cd97c

View File

@ -3110,7 +3110,7 @@ gtk_entry_size_allocate (GtkWidget *widget,
GtkAllocation child_clip;
gint i;
priv->text_baseline = -1;
priv->text_baseline = gtk_widget_get_allocated_baseline (widget);
priv->text_x = 0;
priv->text_width = allocation->width;