Grx.Event.handler_source_new
function handler_source_new(): GLib.Source {
// Gjs wrapper for grx_event_handler_source_new()
}
Creates a new source that will be dispatched when events occur.
The source will not initially be associated with any GLib.MainContext and must be added to one with g_source_attach() before it will be executed. The callback function (set with g_source_set_callback()) is expected to be a Grx.EventHandlerFunc.
Generally, you will want to use Grx.event_handler_add instead.
- Returns
a new GLib.Source