headerbar: forall() the button boxes in the right order
authorBenjamin Otte <otte@redhat.com>
Tue, 14 Jul 2015 20:27:13 +0000 (22:27 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 16 Jul 2015 04:15:13 +0000 (06:15 +0200)
gtk/gtkheaderbar.c

index 0d729a13a32627b2851f281b7f47b65ecc264343..f2f247a4cd8dfcf26cdf1a18dac12264c3481961 100644 (file)
@@ -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