mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
applicationwindow: Stop querying shadow width
don't need to do this anymore.
This commit is contained in:
parent
be8fc8f26b
commit
2e27a76edd
@ -425,7 +425,6 @@ gtk_application_window_measure (GtkWidget *widget,
|
||||
|
||||
if (orientation == GTK_ORIENTATION_HORIZONTAL)
|
||||
{
|
||||
GtkBorder border = {0};
|
||||
int menubar_height = 0;
|
||||
|
||||
gtk_widget_measure (priv->menubar, GTK_ORIENTATION_VERTICAL,
|
||||
@ -440,10 +439,6 @@ gtk_application_window_measure (GtkWidget *widget,
|
||||
|
||||
gtk_widget_measure (priv->menubar, orientation, menubar_height, &menubar_min, &menubar_nat, NULL, NULL);
|
||||
|
||||
_gtk_window_get_shadow_width (GTK_WINDOW (widget), &border);
|
||||
menubar_min += border.left + border.right;
|
||||
menubar_nat += border.left + border.right;
|
||||
|
||||
*minimum = MAX (*minimum, menubar_min);
|
||||
*natural = MAX (*natural, menubar_nat);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user