X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=25d3fe7eef16f82b265d0ccccc09a97cfe4fb390;hb=ca99bd4de57d0b079024cbdf5435de1ae61d5fd9;hp=342246cd47a4cbb93270096eae79449607eab0f5;hpb=d76dd6e5ccec1c0d6d09f11a546da2248b70126a;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 342246c..25d3fe7 100644 --- a/xoptions.c +++ b/xoptions.c @@ -80,7 +80,6 @@ extern char *getenv(); extern void SendToProgram P((char *message, ChessProgramState *cps)); - extern Widget formWidget, shellWidget, boardWidget, menuBarWidget; extern Display *xDisplay; extern int squareSize; @@ -143,7 +142,6 @@ void ShuffleCallback(w, client_data, call_data) ShufflePopDown(); shuffleOpenings = False; // [HGM] should be moved to New Variant menu, once we have it! ResetGameEvent(); - AnalysisPopDown(); return; } if (strcmp(name, _("random")) == 0) { @@ -165,7 +163,6 @@ void ShuffleCallback(w, client_data, call_data) shuffleOpenings = True; ShufflePopDown(); ResetGameEvent(); - AnalysisPopDown(); return; } } @@ -1082,7 +1079,7 @@ void NewVariantPopUp() "for missing bitmaps. (See manual.)")); j++; XtCreateManagedWidget("warning", labelWidgetClass, form, args, j); - XtRealizeWidget(popup); + XtRealizeWidget(popup); CatchDeleteWindow(popup, "NewVariantPopDown"); XQueryPointer(xDisplay, xBoardWindow, &root, &child, @@ -1476,7 +1473,7 @@ void CreateComboPopup(parent, name, n, mb) 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; @@ -1490,7 +1487,7 @@ void SettingsPopUp(ChessProgramState *cps) 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, @@ -1508,7 +1505,7 @@ void SettingsPopUp(ChessProgramState *cps) XtSetArg(args[j], XtNfromHoriz, leftMargin); j++; XtSetValues(form, args, j); leftMargin = form; - + last = NULL; for(h=0; h