Source.attach

Adds a #GSource to a @context so that it will be executed within that context. Remove it by calling g_source_destroy().

class Source
uint
attach

Parameters

context MainContext

a #GMainContext (if %NULL, the default context will be used)

Return: the ID (greater than 0) for the source within the #GMainContext.

Meta