Function
GObjectClosurenew_object
Description
A variant of g_closure_new_simple()
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.
Parameters
sizeof_closure |
guint |
The size of the structure to allocate, must be at least
|
|
object |
GObject |
A |
|
The data is owned by the caller of the function. |
Return value
Returns: | GClosure |
A newly allocated |
|
The caller of the function takes ownership of the data, and is responsible for freeing it. |