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 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
[EMAIL PROTECTED]
www.murrayc.com

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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]
http://mail.gnome.org/mailman/listinfo/gtk-list



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 ;-))
Thanks for this reference,

Manu
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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 thing. Please don't confuse it.


Salut, Sven

___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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 same goal, isn't it ?
So I understand what reference counting are because I know what is
garbage collector.

But feel free to explain me more if I'm in the wrong way.

Bonne soirée,

Manu
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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:
http://wombat.doc.ic.ac.uk/foldoc/foldoc.cgi?reference+counting

 
 Regards,
 
 Manu
 ___
 gtk-app-devel-list mailing list
 [EMAIL PROTECTED]
 http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list
-- 
Gustavo João Alves Marques Carneiro
[EMAIL PROTECTED] [EMAIL PROTECTED]


___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list



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 really 'clean'. How can I free the
old model ?

Thanks and regards,

Manu
___
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list