diff options
author | Kristian Rietveld <kris@gtk.org> | 2002-05-16 22:17:59 +0000 |
---|---|---|
committer | Kristian Rietveld <kristian@src.gnome.org> | 2002-05-16 22:17:59 +0000 |
commit | 13dcd62e2308e57c20fcda83ac04117793748081 (patch) | |
tree | b092f3916a4e35ed07fbbdc69ba97e9c27f85a70 /gtk/gtktreestore.c | |
parent | 8afec72c8d0cee7fb5ccb4c07e99f8eccdcace68 (diff) | |
download | gdk-pixbuf-13dcd62e2308e57c20fcda83ac04117793748081.tar.gz |
Merged from gtk-2-0.
Thu May 16 23:59:56 2002 Kristian Rietveld <kris@gtk.org>
Merged from gtk-2-0.
* gtk/gtktreestore.c (gtk_tree_store_sort_iter_changed): set the prev
of the next node correctly, so we don't corrupt the list and cause
bad things. (fixes #71374)
Diffstat (limited to 'gtk/gtktreestore.c')
-rw-r--r-- | gtk/gtktreestore.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtktreestore.c b/gtk/gtktreestore.c index b3cf3ed4d..c1380f03e 100644 --- a/gtk/gtktreestore.c +++ b/gtk/gtktreestore.c @@ -2042,6 +2042,7 @@ gtk_tree_store_sort_iter_changed (GtkTreeStore *tree_store, prev->next = next; else node->parent->children = next; + if (next) next->prev = prev; @@ -2086,6 +2087,7 @@ gtk_tree_store_sort_iter_changed (GtkTreeStore *tree_store, else { G_NODE (iter->user_data)->next = G_NODE (iter->user_data)->parent->children; + G_NODE (iter->user_data)->next->prev = G_NODE (iter->user_data); G_NODE (iter->user_data)->parent->children = G_NODE (iter->user_data); } |