forked from AuroraMiddleware/gtk
applicationwindow: Fix measure implementation
Really calculate the menubar height, not the width.
This commit is contained in:
parent
e7b3909fd1
commit
7c47c7cdaf
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user