X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=93e817abb36eb154e5856d23ba6fe277440da930;hb=f8c35eb754cb56fb821bb45e87fd7a27e9ccb594;hp=726574c2e86fa461711871b0db73ee51fae99ecb;hpb=0d5d98e82dac22b0873aaf9fea8a1b13e1f9f349;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 726574c..93e817a 100644 --- a/dialogs.c +++ b/dialogs.c @@ -1844,7 +1844,7 @@ PMSelect (int n) else EditPositionMenuEvent(pieceMenuTranslation[n - W_MENUW][values[n]], pmFromX, pmFromY); } -int +static void CCB (int n) { shiftKey = (ShiftKeys() & 3) != 0; @@ -2281,7 +2281,7 @@ DirSelProc (int n, int sel) } } -FILE * +void Browse (DialogClass dlg, char *label, char *proposed, char *ext, Boolean pathFlag, char *mode, char **name, FILE **fp) { int j=0; @@ -2295,8 +2295,7 @@ Browse (DialogClass dlg, char *label, char *proposed, char *ext, Boolean pathFla browseOptions[6].textValue = (char*) (pathFlag ? NULL : &FileSelProc); // disable file listbox during path browsing ListDir(pathFlag); currentCps = NULL; - if(GenericPopUp(browseOptions, label, BrowserDlg, dlg, MODAL, 0)) { - } + GenericPopUp(browseOptions, label, BrowserDlg, dlg, MODAL, 0); SetWidgetLabel(&browseOptions[9], FileTypes[j]); }