g_type_register_static and thread-safety

2003-07-04 Thread Dave Benson
Hello, Almost all get_type() functions contain code like GType whatever_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { ... }; object_type = g_type_register_static (G_TYPE_OBJECT, Whatever, object_info, 0);

Re: g_type_register_static and thread-safety

2003-07-04 Thread Owen Taylor
On Fri, 2003-07-04 at 04:08, Dave Benson wrote: Hello, Almost all get_type() functions contain code like GType whatever_get_type (void) { static GType object_type = 0; if (!object_type) { static const GTypeInfo object_info = { ... }; object_type =

Trouble with GtkTreeModel co.

2003-07-04 Thread Andrej Prsa
Hi, everyone! I am trying to upgrade from CLists to GtkTreeViews since my transition from 1.2 to 2.0. I have a spin button that declares how many rows a GtkTreeModel (with a GtkListStore) should contain; attached to the changed signal for a spin-button I have a callback that should do this. While

Test

2003-07-04 Thread Grzegorz Goawski
Sorry. Testing new configuration. -- === $+ Grzegorz Goawski +$ $+ [EMAIL PROTECTED] +$ === ___ gtk-list mailing list [EMAIL PROTECTED] http://mail.gnome.org/mailman/listinfo/gtk-list

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread edscott wilson garcia
El vie, 04-07-2003 a las 11:38, Andrej Prsa escribió: Hi, everyone! I am trying to upgrade from CLists to GtkTreeViews since my transition from 1.2 to 2.0. I have a spin button that declares how many rows a GtkTreeModel (with a GtkListStore) should contain; attached to the changed signal

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Andrej Prsa
Heèllo! El vie, 04-07-2003 a las 11:38, Andrej Prsa escribió: Hi, everyone! I am trying to upgrade from CLists to GtkTreeViews since my transition from 1.2 to 2.0. I have a spin button that declares how many rows a GtkTreeModel (with a GtkListStore) should contain; attached to

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Havoc Pennington
On Fri, Jul 04, 2003 at 09:42:28PM +0200, Andrej Prsa wrote: Yep, I did something similar: sprintf (path_str, %d, count); while (gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (store), iter, path_str) == TRUE) { count++; sprintf (path_str, %d, count); } But it's just

Re: Trouble with GtkTreeModel co.

2003-07-04 Thread Mariano Suarez-Alvarez
On Fri, 4 Jul 2003, Havoc Pennington wrote: On Fri, Jul 04, 2003 at 09:42:28PM +0200, Andrej Prsa wrote: Yep, I did something similar: sprintf (path_str, %d, count); while (gtk_tree_model_get_iter_from_string (GTK_TREE_MODEL (store), iter, path_str) == TRUE) { count++;