extern void SendToProgram P((char *message, ChessProgramState *cps));
-
extern Widget formWidget, shellWidget, boardWidget, menuBarWidget;
extern Display *xDisplay;
extern int squareSize;
"for missing bitmaps. (See manual.)")); j++;
XtCreateManagedWidget("warning", labelWidgetClass, form, args, j);
- XtRealizeWidget(popup);
+ XtRealizeWidget(popup);
CatchDeleteWindow(popup, "NewVariantPopDown");
XQueryPointer(xDisplay, xBoardWindow, &root, &child,
void SettingsPopUp(ChessProgramState *cps)
{
Arg args[16];
- Widget popup, layout, dialog, edit, form, oldform, last, b_ok, b_cancel, leftMargin = NULL;
+ Widget popup, layout, dialog, edit=NULL, form, oldform, last, b_ok, b_cancel, leftMargin = NULL;
Window root, child;
int x, y, i, j, height, width, h, c;
int win_x, win_y;
if(cps->nrOptions > 50) width = 4; else if(cps->nrOptions>24) width = 2; else width = 1;
height = cps->nrOptions / width + 1;
- i = 0;
+ i = 0;
XtSetArg(args[i], XtNresizable, True); i++;
SettingsShell = popup =
XtCreatePopupShell(_("Settings Menu"), transientShellWidgetClass,
XtSetArg(args[j], XtNfromHoriz, leftMargin); j++;
XtSetValues(form, args, j);
leftMargin = form;
-
+
last = NULL;
for(h=0; h<height; h++) {
i = h + c*height;
SettingsUp = True;
previous = NULL;
- SetFocus(edit, popup, (XEvent*) NULL, False);
+ if(edit)SetFocus(edit, popup, (XEvent*) NULL, False);
}
void FirstSettingsProc(w, event, prms, nprms)
SettingsPopUp(&second);
}
+//---------------------------- Chat Windows ----------------------------------------------
+
+void OutputChatMessage(int partner, char *mess)
+{
+ return; // dummy
+}
+
//--------------------------- General Popup for Cloning ----------------------------------
#if 0
int XXXUp;