[gtk+] applicationwindow: Fix measure implementation
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] applicationwindow: Fix measure implementation
- Date: Wed, 17 Jan 2018 20:54:57 +0000 (UTC)
commit 7c47c7cdaf5262e1c4ae7941b86230bef11c9b30
Author: Timm Bäder <mail baedert org>
Date: Wed Jan 17 16:02:28 2018 +0100
applicationwindow: Fix measure implementation
Really calculate the menubar height, not the width.
gtk/gtkapplicationwindow.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 6ac9752..0d2304a 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -547,7 +547,8 @@ gtk_application_window_measure (GtkWidget *widget,
GtkBorder border = {0};
int menubar_height = 0;
- gtk_widget_measure (priv->menubar, orientation, for_size, &menubar_height, NULL, NULL, NULL);
+ gtk_widget_measure (priv->menubar, GTK_ORIENTATION_VERTICAL,
+ for_size, &menubar_height, NULL, NULL, NULL);
GTK_WIDGET_CLASS (gtk_application_window_parent_class)->measure (widget,
orientation,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]