applicationwindow: Fix measure implementation

Really calculate the menubar height, not the width.
This commit is contained in:
Timm Bäder 2018-01-17 16:02:28 +01:00
parent e7b3909fd1
commit 7c47c7cdaf

View File

@ -547,7 +547,8 @@ gtk_application_window_measure (GtkWidget *widget,
GtkBorder border = {0}; GtkBorder border = {0};
int menubar_height = 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, GTK_WIDGET_CLASS (gtk_application_window_parent_class)->measure (widget,
orientation, orientation,