[gtk+] Revert "headerbar: Avoid allocating 0 visible children"



commit a08f8937c6680c01e68b5496299127f310946625
Author: Timm Bäder <mail baedert org>
Date:   Mon Aug 28 16:58:48 2017 +0200

    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.

 gtk/gtkheaderbar.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index bfaf41b..5b8ca74 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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]