Re: Update a GtkTreeView



On Sun, 2003-01-26 at 13:24, Emmanuel Di Pretoro wrote:
My list is sorted by name of authors, so, must I clear my
GtkListStore, and recreate it ? 

OK, hereby the found solution :

When I've updated my database, I call 'gtk_tree_view_set_model' with as
args my GtkTreeView and a function creating a new model. 

It works, but I don't know if it's really 'clean'. How can I free the
old model ?

Tree models are reference counted.

-- 
Murray Cumming
murray usa net
www.murrayc.com




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