RE: Clearing combo box




 /*... Clear the list items at one step ...*/
        gtk_list_clear_items(GtkList *list,gint start,gint end);
        
        example : gtk_list_clear_items(GTK_LIST(GTK_COMBO(widget)->list,0,-1);


   /*... To insert the items ....*/
        
        gtk_list_insert_items(GtkList *list,GList *items,gint position);
        
        list : the list widget.  
        items : the items.  
        position : the position to insert items, starting at 0.  


Thanks
Vishwa

-----Original Message-----
From: gtk-app-devel-list-bounces gnome org
[mailto:gtk-app-devel-list-bounces gnome org]On Behalf Of regatta
Sent: Tuesday, April 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 (Combo,0, _("All1"));


Anyone can help me please ?

-- 
Best Regards,
--------------------
-*- If Linux doesn't have the solution, you have the wrong problem -*-
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

"SASKEN RATED THE BEST EMPLOYER IN THE COUNTRY by the BUSINESS TODAY Mercer Survey 2004"


                           SASKEN BUSINESS DISCLAIMER
This message may contain confidential, proprietary or legally Privileged information. In case you are not the 
original intended Recipient of the message, you must not, directly or indirectly, use, Disclose, distribute, 
print, or copy any part of this message and you are requested to delete it and inform the sender. Any views 
expressed in this message are those of the individual sender unless otherwise stated. Nothing contained in 
this message shall be construed as an offer or acceptance of any offer by Sasken Communication Technologies 
Limited ("Sasken") unless sent with that express intent and with due authority of Sasken. Sasken has taken 
enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage 
caused by any virus transmitted by this email



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