[Gtk-sharp-list] How to remove multiple rows from a TreeStore
?
Joris Willems
trendzetter@pandora.be
Tue, 21 Dec 2004 19:54:37 +0100
Dmitry Kostenko wrote:
> Hello, Joris.
>
>
> Maybe this way?
>
> TreeIter iter;
> if (store.GetIterFirst(out iter)) {
> do {
> bool val = (bool) store.GetValue(iter, 0);
> while (val) {
> // do something - delete file or whatever
> store.Remove(ref iter);
> // iter may become invalid, may need to convert to a treepath
>
> val = (bool) store.GetValue(iter, 0);
> }
> }
> while (store.IterNext(ref iter));
> }
>
Thanks a lot ! It works with charm !