Re: TreeView model
- From: "B.Hakvoort" <bart hakvoort be>
- To: "J. Baltasar Garcia Perez-Schofield" <jbgarcia uvigo es>
- Cc: gtkmm-list gnome org
- Subject: Re: TreeView model
- Date: Thu, 26 Jan 2006 19:37:26 +0100
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]