[gtk+/wip/baedert/drawing: 18/22] entry: Fix baseline alignment
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 18/22] entry: Fix baseline alignment
- Date: Tue, 4 Jul 2017 17:10:42 +0000 (UTC)
commit fbd8aea96a903696ee7d701f746a5a1fbe861983
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]