#include "src/rplexternals.h" #include "motif.h" declareExternalFunction(XtRealizeWidget) declareObject(widget); HEADER declareHelpString("XtRealyze widget\n" " 1: widget\n"); numberOfArguments(1); FUNCTION if (initializationDone eq true) then pullFromStack(widget, external); returnOnError(freeObject(widget)); ifIsExternal(widget, WIDGET) then orElse executionError("Type mismatch error"); returnOnError(freeObject(widget)); endIf XtRealizeWidget(target(objectContainer(Widget, widget))); orElse executionError("Application not initialized"); returnOnError(); endIf END endExternalFunction // vim: ts=4