GtkComboBox - how to clear and repopulate in one step?
- From: asdf <fia_wrc_fanatic yahoo com>
- To: gtk-app-devel-list gnome org
- Subject: GtkComboBox - how to clear and repopulate in one step?
- Date: Thu, 6 Dec 2007 21:03:57 -0800 (PST)
I am using gtk_combo_box_new_text() to setup a combo box to display a list of
strings. However, the documentation states that in this case you can only use the
following set of related (convenience) functions to manipulate the ComboBox:
which then makes it a bit tedious to clear out (i.e. delete all entries) the
ComboBox because you then have to call gtk_combo_box_remove_text() specifying the
index of the entries one by one.
Is there any other way to conveniently or simply remove all entries (strings in my
case) from the ComboBox preferably in one function call?
Is there another way I should be using the GtkComboBox?
I have two comboboxes in my application: the selection in the first combo affects
what data (strings) gets populated in the second combo. Hence the reason why I need
to be able to clear and (re)populate the combo box very quickly and preferably in
I am using GTK+ 2.10.4 on CentOS 5.
Be a better friend, newshound, and
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
] [Thread Prev