else EditPositionMenuEvent(pieceMenuTranslation[n - W_MENUW][values[n]], pmFromX, pmFromY);
}
-int
+static void
CCB (int n)
{
shiftKey = (ShiftKeys() & 3) != 0;
}
}
-FILE *
+void
Browse (DialogClass dlg, char *label, char *proposed, char *ext, Boolean pathFlag, char *mode, char **name, FILE **fp)
{
int j=0;
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]);
}
void SetScroll P((Option *opt, float f));
void AddHandler P((Option *opt, int nr));
void SendText P((int n));
-FILE *Browse P((DialogClass dlg, char *label, char *proposed, char *ext,
+void Browse P((DialogClass dlg, char *label, char *proposed, char *ext,
Boolean pathFlag, char *mode, char **name, FILE **fp));
void InitDrawingParams P(()); // in xboard.c
{
int index;
- if (glc == NULL || listLength == 0) return 0;
+ if (glc == NULL || listLength == 0) return 1;
if(direction == 100) { FocusOnWidget(&gamesOptions[0], GameListDlg); return 1; }
index = SelectedListBoxItem(&gamesOptions[0]);
- if (index < 0) return;
+ if (index < 0) return 1;
if(page && (index == 0 && direction < 1 || direction == -4)) {
page -= 1000;
if(page < 0) page = 0; // safety
index += direction;
if(direction < -1) index = 0;
if(direction > 1) index = listEnd-1;
- if(index < 0 || index >= listEnd) return;
+ if(index < 0 || index >= listEnd) return 1;
HighlightWithScroll(&gamesOptions[0], index, listEnd);
if(!doLoad) return 1;
}