Re: [gtkmm] Storing Glib::RefPtrs in treemodels
- From: Matthew Walton <matthew alledora co uk>
- To: joey yandle <jwy divisionbyzero com>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] Storing Glib::RefPtrs in treemodels
- Date: 11 Jul 2003 22:14:15 +0100
On Fri, 2003-07-11 at 21:52, joey yandle wrote:
> > I have a Gtk::TreeStore subclass which has as one of its columns a
> > Glib::TreeModelColumn<Glib::RefPtr<Towel::TrackStore> > where
> > Towel::TrackStore is a subclass of Gtk::ListStore. When a row is added
> > to this TreeStore, the relevant column is populated with
> > Towel::TrackStore::create(), which returns a RefPtr with a TrackStore
> > inside it as one might expect.
> >
>
> What are you trying to do here? Why do you want to display a Gtk::ListStore
> in a Gtk::TreeView?
No. The ListStore is data associated with that particular row of the
TreeStore, and will be displayed in a different TreeView when
appropriate to do so.
There is no attempt to display the column.
> It looks like you want to store this as data in the model. That's fine;
> as long as you don't add that column to the view, you won't have any
> problem. But if you're trying to display this, you're doing the wrong
> thing.
I am not trying to display it, but it's still not working. The error
specifically occurs when I try and access the data, which suggests to me
that something's not where I think it should be.
--
Matthew Walton <matthew alledora co uk>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]