Re: Clearing combo box



But I still not able to understand, gtk_combo_box_remove_text is to
remove one item only

do you mean I have to use it with loop to remove all items ?

also gtk_combo_box_get_active is to set the default/active item, why
you tell me to use it ?

On Apr 4, 2005 11:16 PM, Hubert Sokołowski <h sokolowski wsisiz edu pl> wrote:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list



-- 
Best Regards,
--------------------
-*- If Linux doesn't have the solution, you have the wrong problem -*-



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