set tmpnode to the return value of the _gtk_rbtree_insert* functions,

2006-05-02  Kristian Rietveld  <kris@imendio.com>

	* 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.
This commit is contained in:
Kristian Rietveld 2006-05-02 15:50:58 +00:00 committed by Kristian Rietveld
parent 99677a97ee
commit 33cddd12d7
3 changed files with 14 additions and 2 deletions

View File

@ -1,3 +1,9 @@
2006-05-02 Kristian Rietveld <kris@imendio.com>
* 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 <mclasen@redhat.com>
* gtk/gtkprinter.[hc]: Don't use virtual as a parameter name.

View File

@ -1,3 +1,9 @@
2006-05-02 Kristian Rietveld <kris@imendio.com>
* 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 <mclasen@redhat.com>
* gtk/gtkprinter.[hc]: Don't use virtual as a parameter name.

View File

@ -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: