diff --git a/ChangeLog b/ChangeLog index ff704dab6d..c9a58d9d1a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-05-02 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set tmpnode to + the return value of the _gtk_rbtree_insert* functions, since that + is the node we really want to check for visibilty. + 2006-05-02 Matthias Clasen * gtk/gtkprinter.[hc]: Don't use virtual as a parameter name. diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index ff704dab6d..c9a58d9d1a 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2006-05-02 Kristian Rietveld + + * gtk/gtktreeview.c (gtk_tree_view_row_inserted): set tmpnode to + the return value of the _gtk_rbtree_insert* functions, since that + is the node we really want to check for visibilty. + 2006-05-02 Matthias Clasen * gtk/gtkprinter.[hc]: Don't use virtual as a parameter name. diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index e92e3ad639..744d34f212 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -7521,12 +7521,12 @@ gtk_tree_view_row_inserted (GtkTreeModel *model, if (indices[depth - 1] == 0) { tmpnode = _gtk_rbtree_find_count (tree, 1); - _gtk_rbtree_insert_before (tree, tmpnode, height, FALSE); + tmpnode = _gtk_rbtree_insert_before (tree, tmpnode, height, FALSE); } else { tmpnode = _gtk_rbtree_find_count (tree, indices[depth - 1]); - _gtk_rbtree_insert_after (tree, tmpnode, height, FALSE); + tmpnode = _gtk_rbtree_insert_after (tree, tmpnode, height, FALSE); } done: