Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ XtAppSetWaA(3x) — HP-UX ANSI C A.09.00

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

XtAppError(1)

XtAppErrorMsg(1)

XtAppSetErrorHandler(1)

XtAppSetErrorMsgHandler(1)

XtAppSetWarningMsgHandler(1)

XtAppWarning(1)

XtAppWarningMsg(1)

XtErrorHandler(2)

 

NAME

XtAppSetWarningHandler − set the low-level warning handler. 

Synopsis

XtErrorHandler XtAppSetWarningHandler(app_context, handler)

    XtAppContext app_context;
    XtErrorHandler handler;

Inputs

app_context
Specifies the application context.

handlerSpecifies the new nonfatal error procedure. 

Returns

A pointer to the previously installed low-level error handler. 

Description

XtAppSetWarningHandler() registers the procedure handler in app_context as the procedure to be invoked by XtAppWarning().  It returns a pointer to the previously installed low-level warning handler.  The default low-level warning handler provided by the Intrinsics is _XtDefaultWarning().  On POSIX-based systems, it prints the message to standard error and returns to the caller. 

Usage

Note that application-context-specific error and warning handling is not implemented on many systems.  Most implementations will have just one set of error handlers.  If they are set for different application contexts, the one performed last will prevail. 

See Also

XtAppError(1), XtAppErrorMsg(1), XtAppSetErrorHandler(1), XtAppSetErrorMsgHandler(1), XtAppSetWarningMsgHandler(1), XtAppWarning(1), XtAppWarningMsg(1),
XtErrorHandler(2). 

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

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