GLib.HookList¶
record (struct)
The HookList struct represents a list of hook functions.
Methods¶
clear¶
Removes all the Hook elements from a HookList.
init¶
Initializes a HookList.
This must be called before the HookList is used.
Parameters:
hook_size— the size of each element in theHookList, typicallysizeof (GHook).
invoke¶
Calls all of the Hook functions in a HookList.
Parameters:
may_recurse—Trueif functions which are already running (e.g. in another thread) can be called. If set toFalse, these are skipped
invoke_check¶
Calls all of the Hook functions in a HookList.
Any function which returns False is removed from the HookList.
Parameters:
may_recurse—Trueif functions which are already running (e.g. in another thread) can be called. If set toFalse, these are skipped
marshal¶
Calls a function on each valid Hook.
Parameters:
may_recurse—Trueif hooks which are currently running (e.g. in another thread) are considered valid. If set toFalse, these are skippedmarshaller— the function to call for eachHook
marshal_check¶
Calls a function on each valid Hook and destroys it if the
function returns False.
Parameters:
may_recurse—Trueif hooks which are currently running (e.g. in another thread) are considered valid. If set toFalse, these are skippedmarshaller— the function to call for eachHook