A variant of gobject.closure.Closure.newSimple which stores object in the data field of the closure and calls gobject.object.ObjectG.watchClosure on object and the created closure. This function is mainly useful when implementing new types of closures.
Allocates a struct of the given size and initializes the initial part as a #GClosure.
Sets a flag on the closure to indicate that its calling environment has become invalid, and thus causes any future invocations of gobject.closure.Closure.invoke on this closure to be ignored.
Invokes the closure, i.e. executes the callback represented by the closure.
Takes over the initial ownership of a closure.