Package: gio

Function gio:cancellable-source-new

Lambda List

gio:cancellable-source-new (cancellable)

Arguments

cancellable -- a g:cancellable object

Return Value

The new g:source instance.

Details

Creates a source that triggers if cancellable is cancelled and calls its g:cancellable-source-func callback function. This is primarily useful for attaching to another (non-cancellable) source with the g:source-add-child-source function to add cancellability to it.

For convenience, you can call this function with a nil value for cancellable, in which case the source will never trigger.
 

See also

#2024-10-23