Hook.find

Finds a #GHook in a #GHookList using the given function to test for a match.

class Hook
static
find

Parameters

hookList HookList

a #GHookList

needValids bool

%TRUE if #GHook elements which have been destroyed should be skipped

func GHookFindFunc

the function to call for each #GHook, which should return %TRUE when the #GHook has been found

data void*

the data to pass to @func

Return: the found #GHook or %NULL if no matching #GHook is found

Meta