[gtk/wip/baedert/for-master: 5/11] applicationwindow: Stop querying shadow width
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/baedert/for-master: 5/11] applicationwindow: Stop querying shadow width
- Date: Sun, 24 May 2020 15:15:12 +0000 (UTC)
commit 2e27a76edd8bc9781d2928a394a7aa78cb934467
Author: Timm Bäder <mail baedert org>
Date: Sat May 23 06:35:27 2020 +0200
applicationwindow: Stop querying shadow width
don't need to do this anymore.
gtk/gtkapplicationwindow.c | 5 -----
1 file changed, 5 deletions(-)
---
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]