[gtk+] headerbar: forall() the button boxes in the right order



commit 792076e09b482e1db06e104e0fc11e69b4fdd122
Author: Benjamin Otte <otte redhat com>
Date:   Tue Jul 14 22:27:13 2015 +0200

    headerbar: forall() the button boxes in the right order

 gtk/gtkheaderbar.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c
index 0d729a1..f2f247a 100644
--- a/gtk/gtkheaderbar.c
+++ b/gtk/gtkheaderbar.c
@@ -1539,6 +1539,9 @@ gtk_header_bar_forall (GtkContainer *container,
   Child *child;
   GList *children;
 
+  if (include_internals && priv->titlebar_start_box != NULL)
+    (* callback) (priv->titlebar_start_box, callback_data);
+
   children = priv->children;
   while (children)
     {
@@ -1554,12 +1557,6 @@ gtk_header_bar_forall (GtkContainer *container,
   if (include_internals && priv->label_box != NULL)
     (* callback) (priv->label_box, callback_data);
 
-  if (include_internals && priv->titlebar_start_box != NULL)
-    (* callback) (priv->titlebar_start_box, callback_data);
-
-  if (include_internals && priv->titlebar_end_box != NULL)
-    (* callback) (priv->titlebar_end_box, callback_data);
-
   children = priv->children;
   while (children)
     {
@@ -1568,6 +1565,9 @@ gtk_header_bar_forall (GtkContainer *container,
       if (child->pack_type == GTK_PACK_END)
         (* callback) (child->widget, callback_data);
     }
+
+  if (include_internals && priv->titlebar_end_box != NULL)
+    (* callback) (priv->titlebar_end_box, callback_data);
 }
 
 static void


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