[gtk+/wip/baedert/drawing: 335/348] entry: Fix baseline alignment
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 335/348] entry: Fix baseline alignment
- Date: Sat, 8 Jul 2017 10:59:00 +0000 (UTC)
commit 3123b7ede87a9abd0b87f797bd1d4b8358dbbf74
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]