MainContext.findSourceByFuncsUserData

Finds a source with the given source functions and user data. If multiple sources exist with the same source function and user data, the first one found will be returned.

class MainContext
findSourceByFuncsUserData

Parameters

funcs glib.types.SourceFuncs

the source_funcs passed to glib.source.Source.new_.

userData void*

the user data from the callback.

Return Value

Type: glib.source.Source

the source, if one was found, otherwise null