[gtk+] grid: Only pass baselines to children that request it



commit b3fedda29ee4896d4a86c917ca4db5b664d57d79
Author: Timm Bäder <mail baedert org>
Date:   Wed Oct 11 08:49:44 2017 +0200

    grid: Only pass baselines to children that request it

 gtk/gtkgrid.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkgrid.c b/gtk/gtkgrid.c
index 50d2865..6a98bd6 100644
--- a/gtk/gtkgrid.c
+++ b/gtk/gtkgrid.c
@@ -1538,7 +1538,7 @@ allocate_child (GtkGridRequest *request,
   attach = &child->attach[orientation];
 
   *position = lines->lines[attach->pos - lines->min].position;
-  if (attach->span == 1)
+  if (attach->span == 1 && gtk_widget_get_valign (child->widget) == GTK_ALIGN_BASELINE)
     *baseline = lines->lines[attach->pos - lines->min].allocated_baseline;
   else
     *baseline = -1;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]