Re: clearing a treeview



On Sat, 2005-04-30 at 16:56 +0200, GyÃzà Both wrote:
hello,

is there an easy one-line way to clear a treeview (so that adding new
content doesn't lead to the old content and the new one appearing side
by side)? currently i'm calling gtk_tree_view_remove_column for each
column; as far as i can remember, setting the model to NULL didn't work
:-/

gtk_tree_store_clear( 
        GTK_TREE_STORE(gtk_tree_view_get_model(treeview))
        );

-- 
Iago Rubio



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