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

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 do we

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

Re: GtkApplication and argc/arv

2011-02-22 Thread Murray Cumming
On Mon, 2011-02-21 at 21:57 +0100, Murray Cumming wrote: I'm trying to wrap GtkApplication for gtkmm but I can't really do that until I understand how it's meant to be used. In general, I find the documentation lacks overview and advice, partly because it's spread between GApplication and

Re: [g-a-devel] Coming to grips with the state of a11y in gtk

2011-02-22 Thread Li Yuan
OK. I made a patch for GtkArrowAccessible. Do we want to open a bug to keep all the patches and review them one by one or just commit them first? I saw you remove g_return* calls, and also macros like GAIL_IS_IMAGE. I am not sure why. Are we going to remove all of them from the new code?

Re: [g-a-devel] Coming to grips with the state of a11y in gtk

2011-02-22 Thread Matthias Clasen
On Tue, Feb 22, 2011 at 4:55 AM, Li Yuan liy...@gnome.org wrote: OK. I made a patch for GtkArrowAccessible. Do we want to open a bug to keep all the patches and review them one by one or just commit them first? I saw you remove g_return* calls, and also macros like GAIL_IS_IMAGE. I am not