gtk_combo_box_new_text() API

2011-02-22 Thread Timo Schneider
Hello, The GTK+ Reference Manual states that a combo box created with gtk_combo_box_new_text() should only be manipulated with the functions gtk_combo_box_append_text(), gtk_combo_box_insert_text(), gtk_combo_box_prepend_text() and gtk_combo_box_remove_text(). I am interested in removing all

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Allin Cottrell
On Tue, 22 Feb 2011, Timo Schneider wrote: The GTK+ Reference Manual states that a combo box created with gtk_combo_box_new_text() should only be manipulated with the functions gtk_combo_box_append_text(), gtk_combo_box_insert_text(), gtk_combo_box_prepend_text() and

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Kevin DeKorte
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 02/22/2011 08:46 AM, Allin Cottrell wrote: It seems that you are in fact OK using the GtkComboBox API for this purpose, as in void depopulate_combo_box (GtkComboBox *box) { GtkTreeModel *model = gtk_combo_box_get_model(box);

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Timo Schneider
On Tue, 2011-02-22 at 08:51 -0700, Kevin DeKorte wrote: On 02/22/2011 08:46 AM, Allin Cottrell wrote: It seems that you are in fact OK using the GtkComboBox API for this purpose, as in void depopulate_combo_box (GtkComboBox *box) { GtkTreeModel *model =

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Tristan Van Berkom
2011/2/23 Timo Schneider ti...@hrz.tu-chemnitz.de: On Tue, 2011-02-22 at 08:51 -0700, Kevin DeKorte wrote: On 02/22/2011 08:46 AM, Allin Cottrell wrote: It seems that you are in fact OK using the GtkComboBox API for this purpose, as in void depopulate_combo_box (GtkComboBox *box) {

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Timo Schneider
On Wed, 2011-02-23 at 03:46 +0900, Tristan Van Berkom wrote: Hi, If your going to use the model, then perhaps this will work... gtk_list_store_clear(GTK_LIST_STORE(gtk_combo_box_get_model(GTK_COMBO_BOX(combo_box; Yes, I can do that. But I think it's a bug in the API if I have to