Re: Clearing combo box



On Mon, 4 Apr 2005 23:07:51 +0300
regatta <regatta gmail com> wrote:

Hi

I have a combo box that I want to clear it (remove all the items) and
add new items to it (I am using C) here is the code I tried but it
didn't work,

gtk_combo_box_set_model(Combo,NULL);
gtk_combo_box_insert_text (Combo,0, _("All1"));
use gtk_combo_box_get_active and gtk_combo_box_remove_text to remove all
items. for inserting text I use gtk_combo_box_append_text.

regards
hs



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