Re: Cross-coupling comboboxes
Daniel Boles via gtkmm-list <[email protected]>
| Newsgroups | gmane.comp.gnome.gtkmm |
|---|---|
| Message-ID | <CAKChMKNuUBAEG9VLn483N=-eKSsiVT8O40XTFckTkLO5knWPLA@mail.gmail.com> |
It's not particularly clear what's going on. Posting the minimal code required to reproduce this on a pastebin and linking it would be great. Are you taking an iterator into the model, then clearing the model, then trying to use the former iterator again? That definitely won't end well, I don't think. In that case you probably should indeed use either TreePath or :active-id, since those are only instructions how to get to the right place in an equivalent model - rather than being intrinsically tied to the validity of the original state of the same model, like iterators are. That said, even path/ID probably only work if, after you clear and rebuild for whatever unclear reason, the item you want to reselect has the same path/ID (or you're happy to select a different item that now has that path/ID). _______________________________________________ gtkmm-list mailing list [email protected] https://mail.gnome.org/mailman/listinfo/gtkmm-list