MainContext.findSourceByUserData

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

class MainContext
findSourceByUserData
(
void* userData = null
)

Parameters

userData void*

the user_data for the callback.

Return Value

Type: glib.source.Source

the source, if one was found, otherwise null