Hook.find

Finds a glib.Hook in a glib.HookList using the given function to test for a match.

class Hook
static
find

Parameters

hookList HookList
needValids bool

TRUE if glib.Hook elements which have been destroyed should be skipped

func GHookFindFunc

the function to call for each glib.Hook, which should return TRUE when the glib.Hook has been found

data void*

the data to pass to func

Return Value

Type: Hook

the found glib.Hook or NULL if no matching glib.Hook is found