forked from AuroraMiddleware/gtk
applicationwindow: Don't pass for_size < -1 to measure()
If the application window is measured with for_size -1 horizontally, this code clearly passes something lower to the parent class measure() implementation. Only subtract the menubar_height if we're passed a for_size > -1.
This commit is contained in:
parent
a00480f4a1
commit
e94d5bf006
@ -435,9 +435,11 @@ gtk_application_window_measure (GtkWidget *widget,
|
||||
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,
|
||||
for_size - menubar_height,
|
||||
for_size > -1 ?
|
||||
for_size - menubar_height : -1,
|
||||
minimum, natural,
|
||||
minimum_baseline, natural_baseline);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user