Re: Various questions about Gtk::PlacesSidebar



On Mon, 2013-09-02 at 16:13 +0200, Krzysztof Kosiński wrote:
2013/9/2 Kjell Ahlstedt <kjell ahlstedt bredband net>:
Objects of classes that derive from Gtk::Object are not put in
Glib::RefPtr<>s. I'm not sure why.

I'm also a little confused by this but it probably has something to do
with Gtk::manage().

GtkWidgets don't use simple reference counting in the GTK+ C API. They
can be destroyed at any time regardless of the reference count. So we
can't use RefPtr with them easily.

-- 
murrayc murrayc com
www.murrayc.com
www.openismus.com




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