X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxoptions.c;h=ef8227207114c47fd703b514a6c7fb440d15a01e;hb=2fa5fee85591096f17d09f2ced9f75f8a144e651;hp=5feb56a169058598850403ecee8e3687856df5ee;hpb=711d00943c8dc11eb3dede32695182defbb96c1f;p=xboard.git diff --git a/xaw/xoptions.c b/xaw/xoptions.c index 5feb56a..ef82272 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -839,8 +839,12 @@ GenericCallback (Widget w, XtPointer client_data, XtPointer call_data) XtSetArg(args[0], XtNlabel, &name); XtGetValues(w, args, 1); if(currentOption[data].type == SaveButton) GenericReadout(currentOption, -1); - snprintf(buf, MSG_SIZ, "option %s\n", name); - SendToProgram(buf, currentCps); + if(data == 0) { // XBoard save button + SaveEngineSettings(currentCps == &second); PopDown(dlg); + } else { + snprintf(buf, MSG_SIZ, "option %s\n", name); + SendToProgram(buf, currentCps); + } } else ((ButtonCallback*) currentOption[data].target)(data); shells[dlg] = oldSh; // in case of multiple instances, restore previous (as this one could be popped down now) @@ -1446,3 +1450,8 @@ FileNamePopUpWrapper (char *label, char *def, char *filter, FileProc proc, Boole { Browse(BoardWindow, label, (def[0] ? def : NULL), filter, False, openMode, openName, openFP); } + +void +LockBoardSize (int after) +{ +}