05, 2005 1:38 AM
To: gtk-app-devel-list@gnome.org
Subject: Clearing combo box
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
On Mon, 4 Apr 2005 23:26:59 +0300
regatta <[EMAIL PROTECTED]> wrote:
> 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 ?
yes, until gtk_combo_box_get_active returns -1
>
> also gtk_combo_bo
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 <[EMAIL PR
On Mon, 4 Apr 2005 23:07:51 +0300
regatta <[EMAIL PROTECTED]> 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_
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"));
Anyone can help me please ?
--
Best Regards,
--