Re: Telling a tree_view a model has changed

2005-02-15 Thread Tim Müller
On Tuesday 15 February 2005 13:28, Denis wrote: > I do not see how this can happen since I made my *own* model and do not > do anything which can notify the view. > Is there something I should do in the model to say "Hi everybody, I have > changed" ? You need to call gtk_tree_model_row_changed()

Re: Telling a tree_view a model has changed

2005-02-15 Thread Denis
Maulet wrote: Denis wrote: Maulet wrote: You have to do nothing. The tree view does the job for you! When a model is connected to a tree view with gtk_tree_view_set_model() or gtk_tree_view_new_with_model(), the tree view reflects any change in the model automatically. I understand that but my p

Re: Telling a tree_view a model has changed

2005-02-15 Thread Maulet
Denis wrote: Maulet wrote: You have to do nothing. The tree view does the job for you! When a model is connected to a tree view with gtk_tree_view_set_model() or gtk_tree_view_new_with_model(), the tree view reflects any change in the model automatically. I understand that but my problem is that

Re: Telling a tree_view a model has changed

2005-02-15 Thread Denis
Maulet wrote: Denis wrote: Hi, What is the best way to tell a tree_view that its model has changed ? (ie the model must be reread) Currently, I use gtk_tree_view_set_model to set the model to NULL and back to mine but I do not find it very ... pretty ! Denis You have to do nothing. The tree vie

Re: Telling a tree_view a model has changed

2005-02-15 Thread Maulet
Denis wrote: Hi, What is the best way to tell a tree_view that its model has changed ? (ie the model must be reread) Currently, I use gtk_tree_view_set_model to set the model to NULL and back to mine but I do not find it very ... pretty ! Denis You have to do nothing. The tree view does the job

Telling a tree_view a model has changed

2005-02-15 Thread Denis
Hi, What is the best way to tell a tree_view that its model has changed ? (ie the model must be reread) Currently, I use gtk_tree_view_set_model to set the model to NULL and back to mine but I do not find it very ... pretty ! Denis ___ gtk-app-devel-li