Re: Cross-coupling comboboxes

2019-06-07 Thread Rob Pearce
On 07/06/2019 21:11, Rob Pearce wrote: And when it does so, the iterator returned by get_active() is invalid, which my code doesn't test for in the secondary case, so that would be worth doing... hold on... Yep, that seems to have fixed it. There may be a better fix. It would be nice if

Re: Cross-coupling comboboxes

2019-06-07 Thread Daniel Boles via gtkmm-list
> What appears to happen, which I wasn't expecting, is the m_refTreeModel->clear(); call invokes the combobox signal_changed handler for every row? yeah, gtk_combo_box_model_row_deleted() does that if the reference to the previous active_row is now invalid, and i presume sets the active model to

Re: Cross-coupling comboboxes

2019-06-07 Thread Rob Pearce
On 07/06/2019 19:56, Daniel Boles via gtkmm-list wrote: 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. Yes, I know, but this is all well embedded into a large code base, so it won't be easy. I'll

Re: Cross-coupling comboboxes

2019-06-07 Thread Daniel Boles via gtkmm-list
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

Re: Cross-coupling comboboxes

2019-06-07 Thread Rob Pearce
On 07/06/2019 13:26, Daniel Boles via gtkmm-list wrote: >>> /Now, using the TreeModel and passing iterators, I get a shed load of Gtk-CRITICAL **: 12:24:08.859: gtk_tree_store_get_path: assertion 'iter->user_data != NULL' failed interspersed with my own debug report of invalid iters passed to

Re: Cross-coupling comboboxes

2019-06-07 Thread Daniel Boles via gtkmm-list
>>> *Now, using the TreeModel and passing iterators, I get a shed load of Gtk-CRITICAL **: 12:24:08.859: gtk_tree_store_get_path: assertion 'iter->user_data != NULL' failed interspersed with my own debug report of invalid iters passed to on_combo_changed() I don't think this is connected

Re: Cross-coupling comboboxes

2019-06-07 Thread Rob Pearce
Thanks, it seems to work. At least, mostly... One of the other changes I'm making needs me to test an existing bit of functionality which replaces the underlying "stuff". This means that the TreeModel content is clear'd then re-built. With the simple list and ComboBoxText, this worked fine.

Re: Cross-coupling comboboxes

2019-06-07 Thread Carlos Gomez
In that case I think so, but never did. Give it a try. My idea was to use Path to get an iterator, but if we are talking about the same instance, the iterator should work. On 06/06/2019 18:13, Rob Pearce wrote: On 06/06/2019 09:18, Carlos Gomez wrote: If both ComboBoxes has the same items,