update the refs from children to parents for all nodes, since they may all

2006-08-16  Kristian Rietveld  <kris@gtk.org>

	* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
	update the refs from children to parents for all nodes, since
	they may all have been moved by the insert operation. (#346800,
	patch from Jonathan Matthew).
This commit is contained in:
Kristian Rietveld 2006-08-16 14:35:02 +00:00 committed by Kristian Rietveld
parent b34a2576d1
commit 0c9e43aa75
3 changed files with 15 additions and 4 deletions

View File

@ -1,3 +1,10 @@
2006-08-16 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
update the refs from children to parents for all nodes, since
they may all have been moved by the insert operation. (#346800,
patch from Jonathan Matthew).
2006-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentfilter.c (gtk_recent_filter_filter):

View File

@ -1,3 +1,10 @@
2006-08-16 Kristian Rietveld <kris@gtk.org>
* gtk/gtktreemodelfilter.c (gtk_tree_model_filter_fetch_child):
update the refs from children to parents for all nodes, since
they may all have been moved by the insert operation. (#346800,
patch from Jonathan Matthew).
2006-08-15 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrecentfilter.c (gtk_recent_filter_filter):

View File

@ -927,10 +927,7 @@ gtk_tree_model_filter_fetch_child (GtkTreeModelFilter *filter,
g_array_insert_val (level->array, i, elt);
*index = i;
if (i > 0)
i--;
for ( ; i < level->array->len; i++)
for (i = 0; i < level->array->len; i++)
{
FilterElt *e = &(g_array_index (level->array, FilterElt, i));
if (e->children)