[gtk+/wip/baedert/drawing: 4/5] bbox: Don't report a horizontal baseline
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/drawing: 4/5] bbox: Don't report a horizontal baseline
- Date: Wed, 5 Jul 2017 10:45:11 +0000 (UTC)
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]