Re: Storing GObject in GtkListStore

2006-08-03 Thread Tomasz Jankowski
Thank you for help! :) I decided to read more about GtkTree* stuff in gtk and now I understand it much beter! thx again! ___ gtk-app-devel-list mailing list gtk-app-devel-list@gnome.org http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list

Re: Storing GObject in GtkListStore

2006-08-02 Thread Rick Jones
Tomasz Jankowski wrote: > Hi! > > Generally it isn't a problem, I'm only nosy :P I'd like to know if there is > some other (more recommended) way to store, for example GObject in > GtkListStore/GtkTreeStore. So far I do it, by creating column with type > G_TYPE_INT and storing there pointer to obj

Re: Storing GObject in GtkListStore

2006-08-02 Thread Philip Van Hoof
On Wed, 2006-08-02 at 15:51 +0200, Tomasz Jankowski wrote: > Hi! Hey Tomasz! > Generally it isn't a problem, I'm only nosy :P I'd like to know if there is > some other (more recommended) way to store, for example GObject in > GtkListStore/GtkTreeStore. So far I do it, by creating column with type

Re: Storing GObject in GtkListStore

2006-08-02 Thread Lance Dillon
As far as I can tell you can, as per this example: http://developer.gnome.org/doc/API/2.0/gtk/GtkListStore.html#gtk-list-store-new Notice how they set a column as a GDK_TYPE_PIXBUF, which is derived from G_OBJECT. This implies that you can store anything derived from G_OBJECT in a column desi