From 55389cd97c35185639f914a37e1c291ebebcd278 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Tue, 4 Jul 2017 15:22:58 +0200 Subject: [PATCH] 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. --- gtk/gtkentry.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index 5b04ef7117..baaa6906d7 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -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;