Hook.firstValid

Returns the first glib.Hook in a glib.HookList which has not been destroyed. The reference count for the glib.Hook is incremented, so you must call Hook.unref to restore it when no longer needed. (Or call Hook.nextValid if you are stepping through the glib.HookList)

class Hook
static
firstValid

Parameters

hookList HookList
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 glib.Hook, or NULL if none are valid