MainContext.findSourceByFuncsUserData

glib.source.Source findSourceByFuncsUserData(glib.types.SourceFuncs funcs, void * userData = null)

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.

Parameters

funcsthe source_funcs passed to [glib.source.Source.new_].
userDatathe user data from the callback.

Returns

the source, if one was found, otherwise null