From 33cddd12d78abb2efe6facba9c859017f8df9819 Mon Sep 17 00:00:00 2001 From: Kristian Rietveld Date: Tue, 2 May 2006 15:50:58 +0000 Subject: [PATCH] set tmpnode to the return value of the _gtk_rbtree_insert* functions, 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. --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ gtk/gtktreeview.c | 4 ++-- 3 files changed, 14 insertions(+), 2 deletions(-) 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: