Closure.newObject
gobject.closure.Closure newObject(uint sizeofClosure, gobject.object.ObjectWrap object)A variant of [gobject.closure.Closure.newSimple] which stores object in the data field of the closure and calls [gobject.object.ObjectWrap.watchClosure] on object and the created closure. This function is mainly useful when implementing new types of closures.
Parameters
sizeofClosure | the size of the structure to allocate, must be at least sizeof (GClosure) |
object | a #GObject pointer to store in the data field of the newly allocated #GClosure |
Returns
a newly allocated #GClosure