summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2018-01-17 16:02:28 +0100
committerTimm Bäder <mail@baedert.org>2018-01-17 21:57:20 +0100
commit7c47c7cdaf5262e1c4ae7941b86230bef11c9b30 (patch)
treeb2dbffd44c8ffdeb8bbe51fbac1db0b8b9c54052
parente7b3909fd13e441d29fca0ff866abdd31bb87b2c (diff)
downloadgtk+-7c47c7cdaf5262e1c4ae7941b86230bef11c9b30.tar.gz
applicationwindow: Fix measure implementation
Really calculate the menubar height, not the width.
-rw-r--r--gtk/gtkapplicationwindow.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index 6ac97521bb..0d2304a4d6 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,