Re: Using GSocket in a GTK application

2011-02-22 Thread Nader Morshed
> Any comments about how to improve, missing code, etc.? I would personally recommend taking a look at the GIOStream API for processing data sent through the connection, it would help save a bit of the low-level worries and allow you to get automatically-buffered input through the help of GBuffer

Re: Using GSocket in a GTK application

2011-02-22 Thread Jacques Pelletier
On Sunday 13 February 2011 22:17:12 Jacques Pelletier wrote: > Hi all, > > I'm using GSocket in a GTK application in non-blocking mode. > > Once the connection is done, I'm creating a source for the main event loop: > my_source = g_socket_create_source(my_socket, my_events, NULL); > > How

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

Re: gtk_combo_box_new_text() API

2011-02-22 Thread Tristan Van Berkom
2011/2/23 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) >> > { >>

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 = gtk_comb

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 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 gtk_combo_box_remove_t

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 text