Re: Telling a tree_view a model has changed
- From: Denis <denis lists gmail com>
- To: Maulet <llistes_lfs yahoo es>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Telling a tree_view a model has changed
- Date: Tue, 15 Feb 2005 14:07:18 +0100
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 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 I do not want to change the
model object itself but only to ask to reread it because some things
changed in it.
And it seems that set_model is clever and detects when it is called
twice with the same object...
However, I saw that what you said works because setting it to NULL and
then back to the first model does the work.
Denis
*
Maulet
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]