Re: [gtk-list] Re: Gtk--: G_List quirks

Tero Pulkkinen <> writes:

> I would prefer if people used the iterator approach... Its much
> better... Though it should be improved to allow also modifying the
> list through it.

You already can, generally speaking. The only glitch is with the
Gtk_Container children list and the fact that it's a snapshot or what
the container holds, so modifying it won't have any effect on the
container itself.

> (maybe removing next(), prev() and those would be ok?  :)

I thought of that too :-)

> (though some of those other wrapped functions are useful for people
> who dont want to depend on STL's algorithms...)

Well, that doesn't prevent them from using iterators, does it ? It
might be less intuitive sometimes, though.


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