summaryrefslogtreecommitdiff
path: root/gtk/gtkrbtree.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-06-15 23:03:27 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-06-15 23:03:27 +0000
commit67f8b5bd468fa8acef16f04e7e897aa47e8d6299 (patch)
tree251f61b38353923cd4d782f80fd2ecc66fb79f40 /gtk/gtkrbtree.c
parent6adcae811bea38163c01371c409942b1ba215cf3 (diff)
downloadgdk-pixbuf-67f8b5bd468fa8acef16f04e7e897aa47e8d6299.tar.gz
Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now.
Fri Jun 15 18:53:48 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtktreesortable.c (gtk_tree_sortable_set_sort_func): Rename gtk_tree_sortable_sort_column_id_set_func. It's much shorter now. * gtk/gtktreeview.c (gtk_tree_view_sort_iter_changed): WOOO!!! Now I can really reorder/sort all Store widgets. treesorttest seems to just work now. * gtk/gtklistview.c (gtk_list_store_iter_changed): Whoops. testtreesort worked through a big coincidence all this time. * gtk/gtkrbtree.c (_gtk_rbtree_reorder): Nasty bug fix in nasty code. * tests/testtreecolumns.c: Big 'ol warning at the top letting people know that this code should never ever ever be copied. HA! While everyone else was busy flaming eash other over configuration engines, I secretly got sorting completely working with store widgets and GtkTreeView. GtkTreeModelSort, here I come!!!!!
Diffstat (limited to 'gtk/gtkrbtree.c')
-rw-r--r--gtk/gtkrbtree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gtk/gtkrbtree.c b/gtk/gtkrbtree.c
index bae1fc249..18cdf6e38 100644
--- a/gtk/gtkrbtree.c
+++ b/gtk/gtkrbtree.c
@@ -815,6 +815,8 @@ _gtk_rbtree_reorder (GtkRBTree *tree,
{
reorder = g_array_index (array, GtkRBReorder, i);
node->children = reorder.children;
+ if (node->children)
+ node->children->parent_node = node;
node->flags = GTK_RBNODE_GET_COLOR (node) | reorder.flags;
/* We temporarily set the height to this. */
node->offset = reorder.height;