Re: Clear a text combo box



Am Donnerstag, den 05.01.2006, 16:34 -0300 schrieb Juan Pablo:
What is the way for removing all items in a combo box?
If it is iterating gtk_combo_box_remove, how do i get the number of 
items it has?

You'll have to peek the combo box model data. You can fetch the model
using gtk_combo_box_get_model  and either use gtk_list_store_clear, or
gtk_tree_model_iter_n_children and gtk_combo_box_remove_text.

-- 
Christian Neumair <chris gnome-de org>


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