summaryrefslogtreecommitdiff
path: root/gtk/gtkapplicationwindow.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2020-05-23 06:37:18 +0200
committerTimm Bäder <mail@baedert.org>2020-05-24 15:59:05 +0200
commit60902484fdec9b7793a2d97473ba353e15f79fcd (patch)
tree68495c5cc453d708170a429d08b88d570fefde9f /gtk/gtkapplicationwindow.c
parent48c9c866266f557206f3098f10406c73ee0e2985 (diff)
downloadgtk+-60902484fdec9b7793a2d97473ba353e15f79fcd.tar.gz
applicationwindow: Simplify measure implementation
We already chain up first thing in this function, so no need to do it again.
Diffstat (limited to 'gtk/gtkapplicationwindow.c')
-rw-r--r--gtk/gtkapplicationwindow.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/gtk/gtkapplicationwindow.c b/gtk/gtkapplicationwindow.c
index e4835c9c70..07dc9ba812 100644
--- a/gtk/gtkapplicationwindow.c
+++ b/gtk/gtkapplicationwindow.c
@@ -445,25 +445,11 @@ gtk_application_window_measure (GtkWidget *widget,
}
else /* VERTICAL */
{
- GTK_WIDGET_CLASS (gtk_application_window_parent_class)->measure (widget,
- orientation,
- for_size,
- minimum, natural,
- minimum_baseline, natural_baseline);
-
gtk_widget_measure (priv->menubar, orientation, for_size, &menubar_min, &menubar_nat, NULL, NULL);
*minimum += menubar_min;
*natural += menubar_nat;
}
}
- else
- {
- GTK_WIDGET_CLASS (gtk_application_window_parent_class)->measure (widget,
- orientation,
- for_size,
- minimum, natural,
- minimum_baseline, natural_baseline);
- }
}
static void