X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=688f3f3a0d55fae2fda21d149d2c10fd48d9d77a;hb=621d1288d1b721ce3010e510a5c49d0bbeb6802d;hp=0ace8b671e5d85aa56dcdd6a5422228c638447aa;hpb=3beab75f584e391ed8523be54fd56c6cf2cb5da3;p=xboard.git diff --git a/xoptions.c b/xoptions.c index 0ace8b6..688f3f3 100644 --- a/xoptions.c +++ b/xoptions.c @@ -83,6 +83,7 @@ extern char *getenv(); // [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) @@ -727,7 +728,7 @@ SetColor (char *colorName, Option *box) } else { buttonColor = *(Pixel *) vTo.addr; } - } else buttonColor = (Pixel) 0; + } else buttonColor = timerBackgroundPixel; XtSetArg(args[0], XtNbackground, buttonColor);; XtSetValues(box->handle, args, 1); }