X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxoptions.c;h=5d00290f0d6178ad3019dd480d0d5eedf7128305;hb=84e07cc1789c9cd3b523935258f99eb7f565c4dc;hp=7f73a0bca8873e639899541a66f218f8abff9c3c;hpb=abf66736d2029b5e28b8988c253454142c86efa6;p=xboard.git diff --git a/xaw/xoptions.c b/xaw/xoptions.c index 7f73a0b..5d00290 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -201,7 +201,8 @@ LoadListBox (Option *opt, char *emptyText, int n1, int n2) { static char *dummyList[2]; dummyList[0] = emptyText; // empty listboxes tend to crash X, so display user-supplied warning string instead - XawListChange(opt->handle, *(char*)opt->target ? opt->target : dummyList, 0, 0, True); + XawListChange(opt->handle, *(char**)opt->target ? opt->target : dummyList, 0, 0, True); +//printf("listbox data = %x\n", opt->target); } int @@ -980,6 +981,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent } else texts[h] = dialog = NULL; // kludge to position from left margin w = option[i].type == Spin || option[i].type == Fractional ? 70 : option[i].max ? option[i].max : 205; if(option[i].type == FileName || option[i].type == PathName) w -= 55; + if(squareSize > 33) w += (squareSize - 33)/2; j = SetPositionAndSize(args, dialog, last, 1 /* border */, w /* w */, option[i].type == TextBox ? option[i].value : 0 /* h */, 0x91 /* chain full width */); if(option[i].type == TextBox) { // decorations for multi-line text-edits