Re: Cross-coupling comboboxes

Rob Pearce <[email protected]>
Newsgroups gmane.comp.gnome.gtkmm
Message-ID <[email protected]>
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. 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 with the coupling. If I comment out the 
forward coupling call it makes little difference. I've also tried 
calling unset_active() before the clear() but it didn't help.

Any ideas?

On 07/06/2019 09:15, Carlos Gomez wrote:
> 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, perhaps you should use 
>>> Gtk::TreeModel::Path.
>>
>> They not only have the same items, they share a TreeModel instance 
>> and a TreeModel::Columns instance (I believe this is an officially 
>> approved scheme). So yes, Path should work. In fact, can I not use 
>> the ::iterator directly?
>>
>>
>> _______________________________________________
>> gtkmm-list mailing list
>> [email protected]
>> https://mail.gnome.org/mailman/listinfo/gtkmm-list
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.