Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtAddAction(3x) — HP-UX 9.05

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppAddActions(1)

XtActionProc(2)

 

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

XtAppAddActions(1),
XtActionProc(2). 

Copyright O’Reilly & Assoc.  —  X Toolkit Intrinsics Reference Manual © O’Reilly & Associates

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026