diff options
Diffstat (limited to 'gtk/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index 413c57b114..33190f2b7a 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2104,7 +2104,7 @@ gtk_tree_store_swap (GtkTreeStore *tree_store, g_free (order); } -/* WARNING: this function is *incredibly* fragily. Please smashtest after +/* WARNING: this function is *incredibly* fragile. Please smashtest after * making changes here. * -Kris */ @@ -2394,14 +2394,14 @@ gtk_tree_store_move (GtkTreeStore *tree_store, order[i] = i; } - path = gtk_tree_path_new (); + if (depth) + path = gtk_tree_model_get_path (GTK_TREE_MODEL (tree_store), &parent_iter); + else + path = gtk_tree_path_new (); + gtk_tree_model_rows_reordered (GTK_TREE_MODEL (tree_store), path, NULL, order); - for (i = 0; i < length; i++) - g_print ("%2d ", order[i]); - g_print ("\n"); - gtk_tree_path_free (path); if (position) gtk_tree_path_free (pos_path); |