diff options
author | Matthias Clasen <mclasen@redhat.com> | 2019-01-22 18:44:34 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2019-01-23 19:30:47 -0500 |
commit | f3f5a896de2ce9bb7661ae70ce7cd69d19299994 (patch) | |
tree | e39b26f47952d02203627caf8042ba8a87df177b /gtk/gtktreeviewcolumn.c | |
parent | 883d5d858405706d9a747acf9cc5f8c9f335ad4f (diff) | |
download | gtk+-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/gtktreeviewcolumn.c')
-rw-r--r-- | gtk/gtktreeviewcolumn.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)) |