Re: Removing text from gtkcombobox





Dubravin Andrey <daa84 inbox ru> wrote: > Hello,
In combobox, is it possible to remove all the text in it? I am using gtk_combo_box_new_text() and 
gtk_combo_box_append_text() to add the text in it.. And later i need to empty all its contents.... 
 Also can i get the number of text entries in the combobox?
 If yes.. how can this be done?
 
 Thanking You
 Sandy


I think you can increment count of text entry when add it to combobox
and than to remove item use:

for (i = 0; i < entries_count; i++)
 gtk_combo_box_remove_text (combobox, i); //or i+1 i don't know

Sorry for my bad english
-- 
Dubravin Andrey 

But i wont be knowing the entries count... How to remove the text when 
 
the count of the entries is not known?



 

 Have a good day
 
 Bye


                                
---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.


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