summaryrefslogtreecommitdiff
path: root/gtk/gtkactionbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2019-01-22 18:44:34 -0500
committerMatthias Clasen <mclasen@redhat.com>2019-01-23 19:30:47 -0500
commitf3f5a896de2ce9bb7661ae70ce7cd69d19299994 (patch)
treee39b26f47952d02203627caf8042ba8a87df177b /gtk/gtkactionbar.c
parent883d5d858405706d9a747acf9cc5f8c9f335ad4f (diff)
downloadgtk+-f3f5a896de2ce9bb7661ae70ce7cd69d19299994.tar.gz
box: Avoid position in the reorder api
Change the reorder api to insert after a sibling, so that moving to first place becomes reorder (... NULL). And add a insert_after api that can replace the common container_add / reorder_after (... NULL) combination. Update all callers.
Diffstat (limited to 'gtk/gtkactionbar.c')
-rw-r--r--gtk/gtkactionbar.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk/gtkactionbar.c b/gtk/gtkactionbar.c
index 039e22ddd0..f54308d611 100644
--- a/gtk/gtkactionbar.c
+++ b/gtk/gtkactionbar.c
@@ -210,8 +210,7 @@ gtk_action_bar_set_child_property (GtkContainer *container,
{
g_object_ref (child);
gtk_container_remove (GTK_CONTAINER (priv->start_box), child);
- gtk_container_add (GTK_CONTAINER (priv->end_box), child);
- gtk_box_reorder_child (GTK_BOX (priv->end_box), child, 0);
+ gtk_box_insert_child_after (GTK_BOX (priv->end_box), child, NULL);
g_object_unref (child);
}
}
@@ -479,8 +478,7 @@ gtk_action_bar_pack_end (GtkActionBar *action_bar,
{
GtkActionBarPrivate *priv = gtk_action_bar_get_instance_private (action_bar);
- gtk_container_add (GTK_CONTAINER (priv->end_box), child);
- gtk_box_reorder_child (GTK_BOX (priv->end_box), child, 0);
+ gtk_box_insert_child_after (GTK_BOX (priv->end_box), child, NULL);
}
/**