Re: [gtkmm] multiple selections on TreeView



Am Sam, 2002-11-23 um 00.31 schrieb Daniel Elstner:
> Am Fre, 2002-11-22 um 22.56 schrieb Daniel Elstner:
> > > 
> > > For me it looks like I can't call erase in on_remove_selection() as this
> > > possible invalidates the iterator. If this is true is there any other way
> > > to remove multiple selections? Or I'm tottaly wrong here?

Update:

Hmm, I think GtkTreeStore and GtkListStore even implement persistent
iterators, though this isn't guaranteed for all GtkTreeModel
implementations.  Thus you could just use
std::list<Gtk::TreeModel::iterator> and forget about the sorting
nonsense.

--Daniel





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