Commit 792076e0 authored by Benjamin Otte's avatar Benjamin Otte

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

parent b9b17c3c
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment