signalAddEmissionHook

fngulong signalAddEmissionHook(uint signalId, glib.types.Quark detail, gobject.types.SignalEmissionHook hookFunc)

Adds an emission hook for a signal, which will get called for any emission of that signal, independent of the instance. This is possible only for signals which don't have G_SIGNAL_NO_HOOKS flag set.

Parameters

signalIdthe signal identifier, as returned by [gobject.global.signalLookup].
detailthe detail on which to call the hook.
hookFunca #GSignalEmissionHook function.

Returns

the hook id, for later use with [gobject.global.signalRemoveEmissionHook].