Re: Custom TreeModel
- From: Dave Howorth <dhoworth mrc-lmb cam ac uk>
- To: gtk-perl-list gnome org
- Subject: Re: Custom TreeModel
- Date: Thu, 21 Jan 2010 12:20:45 +0000
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:
<http://gtk2-perl.sourceforge.net/doc/pod/Gtk2/TreeModel.html#DESCRIPTION>
"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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]