add_emission_hook


Description:

public static ulong add_emission_hook (uint signal_id, Quark detail, owned SignalEmissionHook hook_func)

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:

signal_id

the signal identifier, as returned by lookup.

detail

the detail on which to call the hook.

hook_func

a SignalEmissionHook function.

data_destroy

a DestroyNotify for hook_data.

hook_data

user data for hook_func.

Returns:

the hook id, for later use with remove_emission_hook .