RE: [gtkmm] Thanks and a question



> The following code produces a segmentation fault:
>
>      ComboDropDown *pList = pCombo->get_list();
>    
>        pList->children().erase( pList->children().begin(),
pList->children().end() );
> or
>        pList->children().clear();
>
> Am I doing something wrong? I'm trying to clear all the item in the
drop-down portion of a combo box. Any help will be appreciated.

This is a known problem that we could not fix in gtkmm 2.2 without breaking
ABI. It is fixed in gtkmm 2.4 (which also has a new, better, ComboBox
widget). In the meantime, you need to use gobj() to get the C instance, and
use the C functions on that. You should find some more clues about that in
the mailing list archive.

Murray Cumming
www.murrayc.com
murrayc usa net



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