Re: Cross-coupling comboboxes
- From: Daniel Boles <dboles src gmail com>
- To: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Cross-coupling comboboxes
- Date: Fri, 7 Jun 2019 19:56:58 +0100
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).
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]