diff options
author | Timm Bäder <mail@baedert.org> | 2020-05-23 06:37:18 +0200 |
---|---|---|
committer | Timm Bäder <mail@baedert.org> | 2020-05-24 15:59:05 +0200 |
commit | 60902484fdec9b7793a2d97473ba353e15f79fcd (patch) | |
tree | 68495c5cc453d708170a429d08b88d570fefde9f /gtk/gtkapplicationwindow.c | |
parent | 48c9c866266f557206f3098f10406c73ee0e2985 (diff) | |
download | gtk+-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.c | 14 |
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 |