GCancellable* valent_object_chain_cancellable ( ValentObject* object, GCancellable* cancellable )
Chain a cancellable to the object’s cancellable.
so that if
object is destroyed,
cancellable will be cancelled. If
NULL, this method will return a new reference to
ValentObject:cancellable, otherwise it returns a new reference to
Typically the returned
GCancellable is passed to an internal
asynchronous operation, to ensure it is cancelled if
object is destroyed.
Available since: 1.0
The argument can be
The data is owned by the caller of the function.
|The caller of the method takes ownership of the data, and is responsible for freeing it.|