From: Timm Bäder Date: Sat, 23 May 2020 04:35:27 +0000 (+0200) Subject: applicationwindow: Stop querying shadow width X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~16^2~117 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=2e27a76edd8bc9781d2928a394a7aa78cb934467;p=gtk4.git applicationwindow: Stop querying shadow width don't need to do this anymore. --- diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c index 8858d7ec04..e4835c9c70 100644 --- a/gtk/gtkapplicationwindow.c +++ b/gtk/gtkapplicationwindow.c @@ -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);