Re: Custom TreeModel

2010-01-21 Thread Kevin Ryde
Dave Howorth  writes:
>
> are not valid when the model is changed, even though get_flags returns
> 'iters-persist'.

Hmm.  That's not quite right is it?  Is it referring to the way a
Gtk2::TreeIter object in a signal callback is no good outside that
callback (unless copied)?  Like the next sentence about ->foreach?


-- 
Come to Bob's Camping and Outdoor supplies, for now is the winter
of our discount tents.
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list


Re: Custom TreeModel

2010-01-21 Thread Dave Howorth
Kevin Ryde wrote:
> Oh, if you set iters-persist per your first post then the iter has to be
> good for as long as the row exists.

Is that correct? It seems to contradict the docs:



"The iterators are generally used only for a short time, and their
behaviour is different to that suggested by the Gtk+ documentation. They
are not valid when the model is changed, even though get_flags returns
'iters-persist'. Iterators obtained within a GtkTreeModelForeachFunc are
also invalid after the foreach terminates. There may be other such
cases. In the foreach case, and perhaps others, a persistent iterator
may be obtained by copying it (see Glib::Boxed->copy)."

I'm not clear if iters-persist has any effect for a TreeModel?

Cheers, Dave
___
gtk-perl-list mailing list
gtk-perl-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-perl-list