X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xgamelist.c;h=46200c50a6197231c39ef22c779021b5f2394a37;hb=5a0607f180d86de11f7aa5764d02453687266d87;hp=41a43cecb4851e48123427de348d5b3432fb257d;hpb=1c36ced6dd39e157e3e94e24c253a93be9f8f4ed;p=xboard.git diff --git a/xgamelist.c b/xgamelist.c index 41a43ce..46200c5 100644 --- a/xgamelist.c +++ b/xgamelist.c @@ -93,12 +93,6 @@ extern char *getenv(); void SetFocus P((Widget w, XtPointer data, XEvent *event, Boolean *b)); -extern Widget formWidget, shellWidget, boardWidget, menuBarWidget, gameListShell; -extern Display *xDisplay; -extern int squareSize; -extern Pixmap xMarkPixmap; -extern char *layoutName; - static Widget filterText; static char filterString[MSG_SIZ]; static int listLength; @@ -126,11 +120,6 @@ typedef struct { } GameListClosure; static GameListClosure *glc = NULL; -static Arg layoutArgs[] = { - { XtNborderWidth, 0 }, - { XtNdefaultDistance, 0 } -}; - Widget GameListCreate(name, callback, client_data) char *name; @@ -419,12 +408,16 @@ GameListCallback(w, client_data, call_data) if(GameListPrepare()) GameListReplace(); // crashes on empty list... return; } +#if 0 index = atoi(glc->strings[index])-1; // [HGM] filter: read true index from sequence nr of line if (cmailMsgLoaded) { CmailLoadGame(glc->fp, index + 1, glc->filename, True); } else { LoadGame(glc->fp, index + 1, glc->filename, True); } +#else + printf("This code should have been unreachable. Please report bug!\n"); +#endif } void