[gtk+/wip/baedert/drawing: 330/359] entry: Fix baseline alignment
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 330/359] entry: Fix baseline alignment
- Date: Thu, 13 Jul 2017 14:55:31 +0000 (UTC)
commit e2c31122b3edb38a52337ed2f0b40481decc2710
Author: Timm Bäder <mail baedert org>
Date: Tue Jul 4 15:22:58 2017 +0200
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 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c
index 5b04ef7..baaa690 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]