Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource, as with gio.global.pollableSourceNew, but also attaching child_source (with a dummy callback), and cancellable, if they are non-null.
the stream associated with the new source
optional child source to attach
optional #GCancellable to attach
the new #GSource.
Utility method for #GPollableInputStream and #GPollableOutputStream implementations. Creates a new #GSource, as with gio.global.pollableSourceNew, but also attaching child_source (with a dummy callback), and cancellable, if they are non-null.