Re: Telling a tree_view a model has changed
- From: Maulet <llistes_lfs yahoo es>
- To: gtk-app-devel-list gnome org
- Subject: Re: Telling a tree_view a model has changed
- Date: Tue, 15 Feb 2005 14:21:16 +0000
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 I do not want to change the
model object itself but only to ask to reread it because some things
changed in it.
Yes, that's what I've tried to say, but perhaps I've been unclear:
You don't have to reconnect the model to the tree view to make it
reflect any change in the model. If you change one item in a model, you
should see the row in the tree view changing its contents acordingly.
Just make the test!
What I do to make sure the tree view is updated instantaneously is to add:
while (gtk_events_pending)()
gtk_main_iteration();
just after any change in the model.
*
Maulet
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]