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)
a glib.HookList
TRUE if hooks which are currently running (e.g. in another thread) are considered valid. If set to FALSE, these are skipped
the first valid glib.Hook, or NULL if none are valid
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)