Re: Programmer's criticism of GTK2



Maxim Koshelev <max krascoal ru> writes:

Jonathan Blandford wrote:

Hehe, you really can't use them, because for removing operation you
need valid
iterator :-(


What on earth do you want them to point to after you've deleted them?
Currently, it arbitrarily points to the next one on the level, but I
don't see what you're asking for here?

Store two different iterators of ListStore. Remove a row using first
iterator.
Try to remove using second iterator :-)
You'll get an gtk warrnings in stderr :-)

There's no conceptual reason this should be the case.  GtkTreeModelSort
keeps lots of iters around, and survives all sorts of mutations.  What's
the error.  Are you sure you aren't deleting the second iter as well?

-Jonathan



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