for(i = 0, count = 0; columns[i].title; i++, count++)
list_store_types[i] = (columns[i].type == G_TYPE_OBJECT)?GDK_TYPE_PIXBUF:columns[i].type;
+ list_store_types[count + 1] = G_TYPE_INT;
- list_store = gtk_list_store_newv(count, list_store_types);
+ list_store = gtk_list_store_newv(count + 1, list_store_types);
gtk_tree_view_set_model( GTK_TREE_VIEW( treeview ), GTK_TREE_MODEL( list_store ) );