[gtk+/wip/baedert/drawing: 4/35] entry: Fix baseline alignment
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 4/35] entry: Fix baseline alignment
- Date: Sat, 15 Jul 2017 14:40:39 +0000 (UTC)
commit d2922cadeaf4e9e1f0ad04ba73f9cc85706b1bbe
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]