From f3f5a896de2ce9bb7661ae70ce7cd69d19299994 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Tue, 22 Jan 2019 18:44:34 -0500 Subject: 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. --- gtk/gtktreeviewcolumn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gtk/gtktreeviewcolumn.c') diff --git a/gtk/gtktreeviewcolumn.c b/gtk/gtktreeviewcolumn.c index 338d691d38..aa730c8f9b 100644 --- a/gtk/gtktreeviewcolumn.c +++ b/gtk/gtktreeviewcolumn.c @@ -964,9 +964,9 @@ gtk_tree_view_column_update_button (GtkTreeViewColumn *tree_column) * reverse things */ if (priv->xalign <= 0.5) - gtk_box_reorder_child (GTK_BOX (hbox), arrow, 1); + gtk_box_reorder_child_after (GTK_BOX (hbox), arrow, gtk_widget_get_last_child (hbox)); else - gtk_box_reorder_child (GTK_BOX (hbox), arrow, 0); + gtk_box_reorder_child_after (GTK_BOX (hbox), arrow, NULL); if (priv->show_sort_indicator || (GTK_IS_TREE_SORTABLE (model) && priv->sort_column_id >= 0)) -- cgit v1.2.1