A variant of Closure.newSimple which stores object in the data field of the closure and calls g_object_watch_closure() on object and the created closure. This function is mainly useful when implementing new types of closures.
the size of the structure to allocate, must be at least sizeof (GClosure)
a GObject pointer to store in the data field of the newly allocated gobject.Closure
a newly allocated gobject.Closure
ConstructionException GTK+ fails to create the object.
A variant of Closure.newSimple which stores object in the data field of the closure and calls g_object_watch_closure() on object and the created closure. This function is mainly useful when implementing new types of closures.