From 7c47c7cdaf5262e1c4ae7941b86230bef11c9b30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Wed, 17 Jan 2018 16:02:28 +0100 Subject: [PATCH] applicationwindow: Fix measure implementation Really calculate the menubar height, not the width. --- gtk/gtkapplicationwindow.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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,