After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 158511 - Gtk::ComboBoxText should implement gtk_combo_box_remove_text () functionality
Gtk::ComboBoxText should implement gtk_combo_box_remove_text () functionality
Status: RESOLVED WONTFIX
Product: gtkmm
Classification: Bindings
Component: general
2.5
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2004-11-16 23:04 UTC by marxista
Modified: 2009-11-21 01:13 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description marxista 2004-11-16 23:04:37 UTC
Currently the only way to remove text items is to manipulate the model and
upcast it to a Gtk::ListStore.  This would allow removing of text items without
exposing the implementation.
Comment 1 Murray Cumming 2004-11-17 08:22:23 UTC
Yes. A patch would be welcome.
Comment 2 Murray Cumming 2005-01-25 09:12:37 UTC
You can also use clear().
Comment 3 Murray Cumming 2005-02-01 17:03:03 UTC
gtk_combo_box_remove_text() takes an int position, but we don't use numbered
positions in our API. Nor we do allow insertion at particular points. I think
it's OK to deman use of clear() and append() again.

For more complex uses, people should probaby derive their own GtkComboBox
anyway, instead of using this convenience class.

But feel free to suggest a patch.