mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-15 05:00:09 +00:00
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:
parent
48c9c86626
commit
60902484fd
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user