Re: TreeView model



Hi,

Maybe you should try using the Glib::RefPtr.

Glib::RefPtr<Gtk::ListStore> myModel = 
	Gtk::ListStore::create( colsDoc );

see also http://gtkmm.org/docs/gtkmm-2.4/docs/tutorial/html/apa.html

cheers,

plors

On Thu, 2006-01-26 at 19:28 +0100, J. Baltasar Garcia Perez-Schofield
wrote:
> 	Hi, there !
> 
> 	When i do:
> 
> 	treeview->set_model( myModel );
> 
> 	Is myModel stored inside when the treeview and freed when the
> treeview's life is finished ?
> 
> 	I ask this because when I do:
> 
> 	myModel =  &( Gtk::ListStore::create( colsDoc ) );
> 
> 	The compiler complains about getting a pointer to a temporal.
> 
> 	Salud !
> 
> 		Baltasar
> 
> --
> 
> PBC -- J. Baltasar García Perez-Schofield
> jbgarcia en uvigo de es  http://webs.uvigo.es/jbgarcia/
> Dep. Informática, Universidad de Vigo, España (Spain)
> 
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]