[gtkmm] RefPtr and add function
- From: "Pyroman[FO]" <pyroman ninjapanda org>
- To: <gtkmm-list gnome org>
- Subject: [gtkmm] RefPtr and add function
- Date: Sun, 16 Mar 2003 19:20:06 -0600 (CST)
I have a question to ask, maybe its a newbie mistake, and if it is I
apologize, but I can't find an answer to it anywhere. Ive checked the
documentation and searched the mailing list, and didn't find the answer,
so I thought I would ask.
I make a button, like so
Glib::RefPtr<Gtk::Button> button = new Gtk::Button("Button!");
Now, how do I add this to a container? For instance, the line
Doesnt work, because its a pointer.
However, the line
doesnt work, because its a RefPtr, and it can't be directly dereferenced.
So how can I add it to a container? Seems like RefPtr's usefulness would
be severly limited by this, so I figured there was some way to do it. Any
help at all would be appreciated.
] [Thread Prev