Re: Custom TreeModel

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

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]