Position engineOutputX = -1, engineOutputY = -1;
Dimension engineOutputW, engineOutputH;
-Widget engineOutputShell;
+Widget engineOutputShell = NULL;
static int engineOutputDialogUp;
/* Module variables */
void DoSetWindowText(int which, int field, char *s_label)
{
- Arg arg;
+ Arg args[16];
- XtSetArg(arg, XtNlabel, (XtArgVal) s_label);
- XtSetValues(outputField[which][field], &arg, 1);
+ XtSetArg(args[0], XtNlabel, (XtArgVal) s_label);
+ XtSetValues(outputField[which][field], args, 1);
}
void SetEngineOutputTitle(char *title)
{
- Arg arg;
- XtSetArg(arg, XtNtitle, (XtArgVal) title);
- XtSetValues(engineOutputShell, &arg, 1);
+ Arg args[16];
+ if(engineOutputShell==NULL) return;
+ XtSetArg(args[0], XtNtitle, (XtArgVal) title);
+ XtSetValues(engineOutputShell, args, 1);
}
void InsertIntoMemo( int which, char * text, int where )