forked from AuroraMiddleware/gtk
Revert "headerbar: Avoid allocating 0 visible children"
This reverts commit 8c0e5adaab
.
This is actually needed since GtkHeaderBar will allocate and snapshot
widget that coun_visible_children does not consider.
This commit is contained in:
parent
6589532245
commit
a08f8937c6
@ -932,10 +932,6 @@ gtk_header_bar_size_allocate (GtkWidget *widget,
|
||||
|
||||
direction = gtk_widget_get_direction (widget);
|
||||
nvis_children = count_visible_children (bar);
|
||||
|
||||
if (nvis_children == 0)
|
||||
return;
|
||||
|
||||
sizes = g_newa (GtkRequestedSize, nvis_children);
|
||||
|
||||
width = allocation->width - nvis_children * priv->spacing;
|
||||
|
Loading…
Reference in New Issue
Block a user