Component.addFocusHandler

Warning atk_component_add_focus_handler is deprecated and should not be used in newly-written code. This method is deprecated since ATK version 2.9.4. If you need to track when an object gains or lose the focus, use state-changed:focused notification instead. Add the specified handler to the set of functions to be called when this object receives focus events (in or out). If the handler is already added it is not added again

class Component
uint
addFocusHandler

Parameters

handler AtkFocusHandler

The AtkFocusHandler to be attached to component

Return Value

Type: uint

a handler id which can be used in atk_component_remove_focus_handler() or zero if the handler was already added.

Meta