X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fui.c;h=bdd95b061a95b0f88e88e58ddc8f2b4195f1e4c3;hb=d36841f273ffe01ba67ae77a65ba2cd658339e64;hp=ab313dd8f36a25d9cd43a6eb89952c7c9e012b14;hpb=a3b6b584c84e9ca28cf5887e503bb1a7a3c359ef;p=omnplay diff --git a/src/ui.c b/src/ui.c index ab313dd..bdd95b0 100644 --- a/src/ui.c +++ b/src/ui.c @@ -131,8 +131,9 @@ static GtkWidget* create_treeview(GtkWidget* top, char* name, const column_desc_ 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] = 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 ) );