mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-17 06:10:15 +00:00
headerbar: forall() the button boxes in the right order
This commit is contained in:
parent
b9b17c3c2a
commit
792076e09b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user