Storing images in GtkTreeView model

2009-12-16 Thread Andrew Wood
Im using a GtkTreeView with a GtkListStore to display a list of rows with both text and a picture. I can declare the model with just the text as follows: /lhs_store=gtk_list_store_new(1,G_TYPE_STRING,); //1 cols(string) / but how do I decalre it to have a picture as well e.g the following-

Re: Storing images in GtkTreeView model

2009-12-16 Thread Tadej Borovšak
Hello. /lhs_store=gtk_list_store_new(2,G_TYPE_STRING,G_TYPE_PIXBUF); //2 cols, 1st is string, 2nd is icon/ Store creation should be done like this: lhs_store = gtk_list_store_new( 2, G_TYPE_STRING, GDK_TYPE_PIXBUF ); Hint: For most of GTK+/GDK types, you can get tybe by this simple

Re: Storing images in GtkTreeView model

2009-12-16 Thread Andrew Wood
Excellent thank you. Tadej Borovšak wrote: Hello. /lhs_store=gtk_list_store_new(2,G_TYPE_STRING,G_TYPE_PIXBUF); //2 cols, 1st is string, 2nd is icon/ Store creation should be done like this: lhs_store = gtk_list_store_new( 2, G_TYPE_STRING, GDK_TYPE_PIXBUF ); Hint: For most of