Re: Removing text from gtkcombobox
- From: Dubravin Andrey <daa84 inbox ru>
- To: Sandy K <ksandy2005 yahoo co in>
- Cc: gtk-app-devel-list <gtk-app-devel-list gnome org>
- Subject: Re: Removing text from gtkcombobox
- Date: Fri, 14 Apr 2006 00:33:40 +0400
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 <daa84 inbox ru>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]