Re: Update a GtkTreeView

2003-01-27 Thread Murray Cumming
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

Re: Update a GtkTreeView

2003-01-27 Thread Emmanuel Di Pretoro
Tree models are reference counted. I don't understand. What's reference counted ? I'm not native english, so reference counted is surely something that I know, but what ;-)) Regards, Manu ___ gtk-list mailing list [EMAIL PROTECTED]

Re: Update a GtkTreeView

2003-01-27 Thread Emmanuel Di Pretoro
I don't understand. What's reference counted ? I'm not native english, so reference counted is surely something that I know, but what ;-)) This url might help explain: http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?reference+counting OK, garbage collector, I know that ;-))

Re: Update a GtkTreeView

2003-01-27 Thread Sven Neumann
Hi, Emmanuel Di Pretoro [EMAIL PROTECTED] writes: OK, garbage collector, I know that ;-)) garbage collector is not the correct term here. GObject doesn't do garbage collection as you usually refer to it. While reference counting is often used with garbage collection it's not at all the same

Re: Update a GtkTreeView

2003-01-27 Thread Emmanuel Di Pretoro
Salut, garbage collector is not the correct term here. GObject doesn't do garbage collection as you usually refer to it. While reference counting is often used with garbage collection it's not at all the same thing. Please don't confuse it. I don't confuse it. But these techniques have the

Re: Update a GtkTreeView

2003-01-27 Thread Gustavo J. A. M.
On Mon, 2003-01-27 at 13:15, Emmanuel Di Pretoro wrote: Tree models are reference counted. I don't understand. What's reference counted ? I'm not native english, so reference counted is surely something that I know, but what ;-)) This url might help explain:

Update a GtkTreeView

2003-01-26 Thread Emmanuel Di Pretoro
Hi, I've created a GtkTreeView with a GtkListStore to show a list of authors. So, when I update my list of authors, how can I easily update the GtkTreeView. My list is sorted by name of authors, so, must I clear my GtkListStore, and recreate it ? Is it a better way ? Manu

Re: Update a GtkTreeView

2003-01-26 Thread Emmanuel Di Pretoro
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