NAME
XtAddActions − register an action table with the Translation Manager.
SYNOPSIS
void XtAddActions(actions, num_actions)
XtActionList actions;
Cardinal num_actions;
Inputs
actionsSpecifies 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. XtAddActions() 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
XtAppAddActionsUNIX SYSTEM V/68,
XtActionProcUNIX SYSTEM V/88.