Function
GObjectsignal_add_emission_hook
Declaration
gulong
g_signal_add_emission_hook (
guint signal_id,
GQuark detail,
GSignalEmissionHook hook_func,
gpointer hook_data,
GDestroyNotify data_destroy
)
Description
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 |
guint |
The signal identifier, as returned by g_signal_lookup(). |
|
detail |
GQuark |
The detail on which to call the hook. |
|
hook_func |
GSignalEmissionHook |
A |
|
hook_data |
gpointer |
User data for |
|
The argument can be NULL . | |
The data is owned by the caller of the function. | |
data_destroy |
GDestroyNotify |
A |
|
The argument can be NULL . |