Hey all,

Noob to Gtk programming in general so please bear with me. I'm trying to write D bindings for the VIPS library which uses the gobject library internally.

I wanted to subclass ObjectG for objects specific to the library, but I couldn't quite figure out when to pass in true for ObjectG class's constructor (the ownedRef parameter). Am I correct in guessing that we're supposed to pass in true when the gobject already has a linked ObjectG object to it?

Another question is if I am having the GObject generated by a third party and I am responsible for unreffing it, do I have to unref it myself or does the ObjectG class handle everything? It looks like the ObjectG class increments the refCount by 2 already, so I'm guessing I have to unref the GObject manually.

Thanks in advance!