applicationwindow: Simplify measure implementation

We already chain up first thing in this function, so no need to do it
again.
This commit is contained in:
Timm Bäder 2020-05-23 06:37:18 +02:00
parent 48c9c86626
commit 60902484fd

View File

@ -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