I'm trying to weave a homegrown popup modal dialog
into a dtbuilder app and needed to get the app context
for proper callbacks. It works, thats all im sayin

XtAppContext app;
app = XtWidgetToApplicationContext(dtb_get_toplevel_widg et());
while (answer == 0 || XtAppPending(app))
XtAppProcessEvent(app, XtIMAll);