mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
headerbar: Fix size allocation
The GtkHeaderBar gadget implementation was subtly broken: it called gtk_widget_set_allocation both in gtk_header_bar_size_allocate (with the actual allocation) and in gtk_header_bar_allocate_contents (with the content allocation of the main gadget). Dropping the second call fixes the render node conversion for GtkHeaderBar.
This commit is contained in:
parent
cb3fc956c5
commit
5fefc7a714
@ -1012,8 +1012,6 @@ gtk_header_bar_allocate_contents (GtkCssGadget *gadget,
|
||||
gint child_size;
|
||||
GtkTextDirection direction;
|
||||
|
||||
gtk_widget_set_allocation (widget, allocation);
|
||||
|
||||
direction = gtk_widget_get_direction (widget);
|
||||
nvis_children = count_visible_children (bar);
|
||||
sizes = g_newa (GtkRequestedSize, nvis_children);
|
||||
|
Loading…
Reference in New Issue
Block a user