[gtk+] actionbar: Don't forall() widgets twice



commit 402cecf9a2aecf95ac8efca84179adcb1ce8e956
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jan 19 00:53:55 2016 +0100

    actionbar: Don't forall() widgets twice
    
    When using forall(), only list the revealer, which lists the box
    containing all the children. When using foreach(), bypass revealer and
    box and list all children added to the box.

 gtk/gtkactionbar.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index 84c43a8..49374e2 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -141,8 +141,7 @@ gtk_action_bar_forall (GtkContainer *container,
 
   if (include_internals)
     (* callback) (priv->revealer, callback_data);
- 
-  if (priv->box)
+  else if (priv->box)
     gtk_container_forall (GTK_CONTAINER (priv->box), callback, callback_data);
 }
 


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