mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-04 09:40:19 +00:00
applicationwindow: Use gtk_widget_measure to measure widget sizes
This commit is contained in:
parent
2df8a5c7f4
commit
b16a322c4c
@ -609,9 +609,9 @@ gtk_application_window_real_size_allocate (GtkWidget *widget,
|
||||
_gtk_window_set_allocation (GTK_WINDOW (widget), allocation, &child_allocation);
|
||||
menubar_allocation = child_allocation;
|
||||
|
||||
gtk_widget_get_preferred_height_for_width (window->priv->menubar,
|
||||
menubar_allocation.width,
|
||||
&menubar_height, NULL);
|
||||
gtk_widget_measure (window->priv->menubar, GTK_ORIENTATION_VERTICAL,
|
||||
menubar_allocation.width,
|
||||
&menubar_height, NULL, NULL, NULL);
|
||||
|
||||
menubar_allocation.height = menubar_height;
|
||||
gtk_widget_size_allocate (window->priv->menubar, &menubar_allocation);
|
||||
|
Loading…
Reference in New Issue
Block a user