summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2017-08-28 16:58:48 +0200
committerTimm Bäder <mail@baedert.org>2017-08-28 17:50:34 +0200
commita08f8937c6680c01e68b5496299127f310946625 (patch)
treeb3deb376833397e111e259230ba5e776d4078584
parent658953224580067f31fa4815705a2c0768af7ab0 (diff)
downloadgtk+-a08f8937c6680c01e68b5496299127f310946625.tar.gz
Revert "headerbar: Avoid allocating 0 visible children"
This reverts commit 8c0e5adaab3f38de31d44dd50bcc8179b17c8b4a. This is actually needed since GtkHeaderBar will allocate and snapshot widget that coun_visible_children does not consider.
-rw-r--r--gtk/gtkheaderbar.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index bfaf41bbc2..5b8ca74abd 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -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;