// [HGM] the following code for makng menu popups was cloned from the FileNamePopUp routines
static Widget previous = NULL;
+extern Pixel timerBackgroundPixel;
void
SetFocus (Widget w, XtPointer data, XEvent *event, Boolean *b)
Boolean isUCI, hasBook, storeVariant, v1, addToList, useNick;
extern Option installOptions[], matchOptions[];
char *engineNr[] = { N_("First Engine"), N_("Second Engine"), NULL };
-char *engineList[100] = {" "}, *engineMnemonic[100] = {""};
+char *engineList[MAXENGINES] = {" "}, *engineMnemonic[MAXENGINES] = {""};
int
AppendText (Option *opt, char *s)
} else {
buttonColor = *(Pixel *) vTo.addr;
}
- } else buttonColor = (Pixel) 0;
+ } else buttonColor = timerBackgroundPixel;
XtSetArg(args[0], XtNbackground, buttonColor);;
XtSetValues(box->handle, args, 1);
}
void
MatchOptionsProc (Widget w, XEvent *event, String *prms, Cardinal *nprms)
{
- NamesToList(firstChessProgramNames, engineList, engineMnemonic);
+ NamesToList(firstChessProgramNames, engineList, engineMnemonic, "all");
comboCallback = &AddToTourney;
matchOptions[5].min = -(appData.pairingEngine[0] != NULLCHAR); // with pairing engine, allow Swiss
ASSIGN(tfName, appData.tourneyFile[0] ? appData.tourneyFile : MakeName(appData.defName));
if(engineDir) free(engineDir); engineDir = strdup("");
if(nickName) free(nickName); nickName = strdup("");
if(params) free(params); params = strdup("");
- NamesToList(firstChessProgramNames, engineList, engineMnemonic);
+ NamesToList(firstChessProgramNames, engineList, engineMnemonic, "all");
GenericPopUp(installOptions, _("Load engine"), 0);
}