diff options
author | Kristian Rietveld <kristian@src.gnome.org> | 2003-01-14 22:30:41 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2003-01-14 22:30:41 +0000 |
commit | 1fb04c5f223d2b48ff384ea6ebcc7bc6ed7d0446 (patch) | |
tree | 2fcfc55a869fd42c0b131404095c31cee465fc14 /gtk/gtktreestore.c | |
parent | 3c7719b4092daeda07992c52562c0b3eb495dc22 (diff) | |
download | gtk+-1fb04c5f223d2b48ff384ea6ebcc7bc6ed7d0446.tar.gz |
The full changelog for this commit is too long to paste here, so to avoid
annoying everybody I will write a short summary here.
Fixes for: #102890, #103198, #102618, #93629, #100172, #101235, #96650,
#102379.
Other than that also a ListStore fix and a TreeView scrolling fix.
Those interested in the hairy details can checkout gtk+/ChangeLog.
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); |