Re: How to wrap objects based on GInitiallyUnowned (floating references)?



On Tue, 2006-11-14 at 20:08 +0100, Murray Cumming wrote:
> Anyway, I worked around the build problem and then followed the advice
> in that C documentation. I had to hand-code the constructors to do it.
> It seems to prevent the crash in the example. Ignore the extra crap in
> the .patch caused by comparing two source directories without cvs.

More importantly, these objects need to be used via Glib::RefPtr. So
they need to have protected constructors, and public create() methods,
like other classes that use _CLASS_GOBJECT.

-- 
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com




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