forked from AuroraMiddleware/gtk
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:
parent
b34a2576d1
commit
0c9e43aa75
@ -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>
|
2006-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrecentfilter.c (gtk_recent_filter_filter):
|
* gtk/gtkrecentfilter.c (gtk_recent_filter_filter):
|
||||||
|
@ -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>
|
2006-08-15 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/gtkrecentfilter.c (gtk_recent_filter_filter):
|
* gtk/gtkrecentfilter.c (gtk_recent_filter_filter):
|
||||||
|
@ -927,10 +927,7 @@ gtk_tree_model_filter_fetch_child (GtkTreeModelFilter *filter,
|
|||||||
g_array_insert_val (level->array, i, elt);
|
g_array_insert_val (level->array, i, elt);
|
||||||
*index = i;
|
*index = i;
|
||||||
|
|
||||||
if (i > 0)
|
for (i = 0; i < level->array->len; i++)
|
||||||
i--;
|
|
||||||
|
|
||||||
for ( ; i < level->array->len; i++)
|
|
||||||
{
|
{
|
||||||
FilterElt *e = &(g_array_index (level->array, FilterElt, i));
|
FilterElt *e = &(g_array_index (level->array, FilterElt, i));
|
||||||
if (e->children)
|
if (e->children)
|
||||||
|
Loading…
Reference in New Issue
Block a user