From: H.G.Muller Date: Wed, 15 Oct 2014 19:06:53 +0000 (+0200) Subject: Update Game List when setting new Game List Tags X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=67051c8bb6f5a71f15b249f9e9757e3e63ef88f3;p=xboard.git Update Game List when setting new Game List Tags Using the Game List Tags dialog to alter the gae header lines now automatically causes an update of the Game list according to the new tags specification. --- diff --git a/dialogs.c b/dialogs.c index a992eee..0378c01 100644 --- a/dialogs.c +++ b/dialogs.c @@ -2149,6 +2149,7 @@ GLT_OK (int n) { GLT_ParseList(); appData.gameListTags = strdup(lpUserGLT); + GameListUpdate(); return 1; } diff --git a/frontend.h b/frontend.h index a81fd4b..aa7612d 100644 --- a/frontend.h +++ b/frontend.h @@ -180,6 +180,7 @@ void GameListPopUp P((FILE *fp, char *filename)); void GameListPopDown P((void)); void GameListHighlight P((int index)); void GameListDestroy P((void)); +void GameListUpdate P((void)); FILE *GameFile P((void)); /* these are in wedittags.c */ diff --git a/ngamelist.c b/ngamelist.c index 5417804..d202ad6 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -221,6 +221,13 @@ GameListReplace (int page) } void +GameListUpdate () +{ + GameListPrepare(False, False); + GameListReplace(0); +} + +void GameListPopUp (FILE *fp, char *filename) { if (glc == NULL) {