Re: GObject finalizers

2003-09-26 Thread Cedric Marcone
Hi Mathieu, I'm CC'ing gtk-list, because your document might really be helpful to the crowd of newbies like me out there :) Thank you VERY MUCH, I just had a quick look to your doc and I think it will answer most of my questions (Will read it fully tonight). Good job, -- Cédric On Fri, 2003-09

Re: GObject finalizers

2003-09-26 Thread Cedric Marcone
Thanks Sven, That's exactly what I did. But I was not sure if it was considered the right way of doing it. Some more questions : 1- Why isn't the instance initializer method not handled the same way ? 2- Is there a consensus about the type returned by the constructor (target type (MyInstanceTyp

Re: GObject finalizers

2003-09-25 Thread Sven Neumann
Hi, Cedric Marcone <[EMAIL PROTECTED]> writes: > sorry if it's a FAQ but, searching the archives, I couldn't find any > helpful pointers. > > When calling g_object_unref(), refcount is decremented. If it reaches 0, > GObjectClass->finalize(Gobject *) is called. And that's a damn good > thing ;)

GObject finalizers

2003-09-25 Thread Cedric Marcone
Hi all, sorry if it's a FAQ but, searching the archives, I couldn't find any helpful pointers. When calling g_object_unref(), refcount is decremented. If it reaches 0, GObjectClass->finalize(Gobject *) is called. And that's a damn good thing ;) If I subclass GObject with a class containg dynamic