Re: [gtkmm] Thanks and a question
- From: "Jeffrey S. Gavin" <jeff ezclick net>
- Cc: fschwalb tampabay rr com, gtkmm-list gnome org
- Subject: Re: [gtkmm] Thanks and a question
- Date: Thu, 04 Dec 2003 10:37:44 -0600
Murray Cumming Comneon com wrote:
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
FYI,
For the future archive readers I used the following work around:
gtk_list_clear_items(mycombo->get_list()->gobj(), 0, -1);
to clear the items from the combo box.
Regards,
Jeff
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
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]