X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxgamelist.c;fp=xaw%2Fxgamelist.c;h=0000000000000000000000000000000000000000;hb=b10966961672512a212cc61192d0b08cf91c4c0c;hp=312b6d00da14fa5f129a08f9e80efc5e59553502;hpb=e147dd97d26b46902200491dbe0a8755266555d3;p=xboard.git diff --git a/xaw/xgamelist.c b/xaw/xgamelist.c deleted file mode 100644 index 312b6d0..0000000 --- a/xaw/xgamelist.c +++ /dev/null @@ -1,117 +0,0 @@ -/* - * xgamelist.c -- Game list window, part of X front end for XBoard - * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free Software Foundation, Inc. - * ------------------------------------------------------------------------ - * - * GNU XBoard is free software: you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation, either version 3 of the License, or (at - * your option) any later version. - * - * GNU XBoard is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/. * - * - *------------------------------------------------------------------------ - ** See the file ChangeLog for a revision history. */ - -#include "config.h" - -#include -#include -#include -#include - -#if STDC_HEADERS -# include -# include -#else /* not STDC_HEADERS */ -extern char *getenv(); -# if HAVE_STRING_H -# include -# else /* not HAVE_STRING_H */ -# include -# endif /* not HAVE_STRING_H */ -#endif /* not STDC_HEADERS */ - -#if HAVE_UNISTD_H -# include -#endif - -#include -#include -#include -#include -#if USE_XAW3D -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#else -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#include -#endif - -#include "common.h" -#include "backend.h" -#include "xboard.h" -#include "xgamelist.h" -#include "dialogs.h" - - -char gameListTranslations[] = - ": WheelProc(-3) \n \ - : WheelProc(3) \n \ - : LoadSelectedProc(100) Set() \n \ - (2): LoadSelectedProc(0) \n \ - Home: LoadSelectedProc(-2) \n \ - End: LoadSelectedProc(2) \n \ - CtrlUp: LoadSelectedProc(-3) \n \ - CtrlDown: LoadSelectedProc(3) \n \ - Up: LoadSelectedProc(-1) \n \ - Down: LoadSelectedProc(1) \n \ - Left: LoadSelectedProc(-1) \n \ - Right: LoadSelectedProc(1) \n \ - Prior: LoadSelectedProc(-4) \n \ - Next: LoadSelectedProc(4) \n \ - Return: LoadSelectedProc(0) \n"; -char filterTranslations[] = - "Return: SetFilterProc() \n"; - - -void -LoadSelectedProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) -{ - if(GameListClicks(atoi(prms[0]))) return; // if no game loaded, no focus transfer - XSync(xDisplay, False); - XSetInputFocus(xDisplay, XtWindow(boardWidget), RevertToPointerRoot, CurrentTime); -} - -void -SetFilterProc (Widget w, XEvent *event, String *prms, Cardinal *nprms) -{ - SetFilter(); -}