[gtk+/wip/baedert/drawing: 4/5] bbox: Don't report a horizontal baseline



commit 16b03c5c2010fb9355464498c870b5bbc9112e5b
Author: Timm Bäder <mail baedert org>
Date:   Wed Jul 5 08:31:15 2017 +0200

    bbox: Don't report a horizontal baseline

 gtk/gtkbbox.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkbbox.c b/gtk/gtkbbox.c
index 549870f..f35f67e 100644
--- a/gtk/gtkbbox.c
+++ b/gtk/gtkbbox.c
@@ -731,10 +731,13 @@ gtk_button_box_measure (GtkWidget      *widget,
       else
         *minimum = *natural = requisition.height;
 
-      if (minimum_baseline)
-        *minimum_baseline = baseline;
-      if (natural_baseline)
-        *natural_baseline = baseline;
+      if (orientation == GTK_ORIENTATION_VERTICAL)
+        {
+          if (minimum_baseline)
+            *minimum_baseline = baseline;
+          if (natural_baseline)
+            *natural_baseline = baseline;
+        }
     }
 }
 


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