applicationwindow: Stop querying shadow width
authorTimm Bäder <mail@baedert.org>
Sat, 23 May 2020 04:35:27 +0000 (06:35 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 24 May 2020 13:59:05 +0000 (15:59 +0200)
don't need to do this anymore.

gtk/gtkapplicationwindow.c

index 8858d7ec049eb5a327b0e8b96ea576344bf6576b..e4835c9c70a7f70e44afc38b06a2c0131977125a 100644 (file)
@@ -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);