NAME

XtAppAddActionHook, XtRemoveActionHook - register an action hook procedure

SYNTAX

XtActionHookId XtAppAddActionHook(XtAppContext _a_p_p___c_o_n_t_e_x_t, XtActionHookProc _p_r_o_c, XtPointer _c_l_i_e_n_t___d_a_t_a); void XtRemoveActionHook(XtActionHookId _i_d);

ARGUMENTS

_a_p_p___c_o_n_t_e_x_t Specifies the application context.
_p_r_o_c Specifies the action hook procedure.
_n_u_m___a_r_g_s Specifies the application-specific data to be passed to the action hook.

DESCRIPTION

_X_t_A_p_p_A_d_d_A_c_t_i_o_n_H_o_o_k adds the specified procedure to the front of a list maintained in the application context. In the future, when an action routine is about to be invoked for any widget in this application context, either through the translation manager or via _X_t_C_a_l_l_A_c_t_i_o_n_P_r_o_c, the action hohok procedures will be called in reverse order of registration jut prior to invoking the action routine.

Action hook procedures are removed automatically and the _X_t_A_c_t_i_o_n_H_o_o_k_I_d s destroyed when the application context in which they were added is destroyed.

_X_t_R_e_m_o_v_e_A_c_t_i_o_n_H_o_o_k removes the specified action hook procedure from the list in which it was registered.

SEE ALSO


_X _T_o_o_l_k_i_t _I_n_t_r_i_n_s_i_c_s _- _C _L_a_n_g_u_a_g_e _I_n_t_e_r_f_a_c_e
_X_l_i_b _- _C _L_a_n_g_u_a_g_e _X _I_n_t_e_r_f_a_c_e