Treeviews.



Hi,
This may sound really stupid, how do you go about updating the information that is displayed in a treeview
when the underlying TreeStore or ListStore has had rows added to it.

Presently this is what i have:
        enum { FILE_NAME,DATE_CREATED,LAST_MODIFIED, LAST_ACCESSED,USER_ID,GROUP_ID,PREMISSIONS,
                UPLOADED,PENDING,N_COLUMNS };

        GtkListStore *list_store = gtk_list_store_new(9,G_TYPE_STRING,G_TYPE_STRING,G_TYPE_STRING,
                                                G_TYPE_STRING,G_TYPE_STRING,G_TYPE_STRING,G_TYPE_STRING,
                                                G_TYPE_BOOLEAN,G_TYPE_BOOLEAN);

        gdk_threads_enter();            
        gtk_tree_store_append(tree_store, &iter,NULL); 
        gtk_tree_store_set(tree_store, &iter,0,xc,-1); 
                gdk_flush ();
        gdk_threads_leave();

        gtk_tree_view_set_model(GTK_TREE_VIEW(f_l),GTK_TREE_MODEL(list_store)); 

        it seems to work okay when i  try to update it in the same function in which the column is created 
but when its changed away 
        from  that it seems to just want to ignore additions.

any ideas?

Dennis



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]