XtAddActions() XtAddActions()
Name
XtAddActions - register an action table with the Translation Manager.
Synopsis
void XtAddActions(actions, num_actions)
XtActionList actions;
Cardinal num_actions;
Inputs
actions Specifies the action table to register.
num_actions
Specifies the number of entries in this action table.
Availability
Superseded by XtAppAddActions().
Description
XtAddActions() registers actions, an array of num_actions XtActionsRec structures with the Translation Manager. Each element of the array
contains an action name and an action procedure pointer. When a named action is invoked through a translation table, the procedure to be
called is looked up in the action tables that have been registered.
Usage
XtAddActions() has been superseded by XtAppAddActions(), which performs the same function on a per-application context basis. XtAddAc-
tions() now calls XtAppAddActions() passing the default application context created by XtInitialize(). Very few programs need multiple
application contexts, and you can continue to use XtAddActions() if you initialize your application with XtInitialize(). We recommend,
however, that you use XtAppInitialize(), XtAppAddActions(), and the other XtApp*() application context specific functions.
See XtAppAddActions() for more information about how to use actions.
See Also
XtAppAddActions(1),
XtActionProc(2).
Xt - Translations and Actions XtAddActions()