From 792076e09b482e1db06e104e0fc11e69b4fdd122 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Tue, 14 Jul 2015 22:27:13 +0200 Subject: [PATCH] headerbar: forall() the button boxes in the right order --- gtk/gtkheaderbar.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gtk/gtkheaderbar.c b/gtk/gtkheaderbar.c index 0d729a13a3..f2f247a4cd 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