Hook.firstValid

Returns the first #GHook in a #GHookList which has not been destroyed. The reference count for the #GHook is incremented, so you must call g_hook_unref() to restore it when no longer needed. (Or call g_hook_next_valid() if you are stepping through the #GHookList.)

class Hook
static
firstValid

Parameters

hookList HookList

a #GHookList

mayBeInCall bool

%TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to %FALSE, these are skipped

Return Value

Type: Hook

the first valid #GHook, or %NULL if none are valid

Meta