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:
Matthias Clasen 2016-08-05 01:08:44 -04:00
parent cb3fc956c5
commit 5fefc7a714

View File

@ -1012,8 +1012,6 @@ gtk_header_bar_allocate_contents (GtkCssGadget *gadget,
gint child_size; gint child_size;
GtkTextDirection direction; GtkTextDirection direction;
gtk_widget_set_allocation (widget, allocation);
direction = gtk_widget_get_direction (widget); direction = gtk_widget_get_direction (widget);
nvis_children = count_visible_children (bar); nvis_children = count_visible_children (bar);
sizes = g_newa (GtkRequestedSize, nvis_children); sizes = g_newa (GtkRequestedSize, nvis_children);