X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=ngamelist.c;h=d202ad6d146643dca063f3bee95e60c81809b9f2;hb=1f0538d4e71f928ed4163cd5d39cba2d305cf685;hp=c843d38d17096b8e5aee501226400fdfff544dca;hpb=c37d45adc7d98a702a7459ccdc0ac23df01a476e;p=xboard.git diff --git a/ngamelist.c b/ngamelist.c index c843d38..d202ad6 100644 --- a/ngamelist.c +++ b/ngamelist.c @@ -82,7 +82,7 @@ static void GameListReplace P((int page)); static void GL_Button P((int n)); static Option gamesOptions[] = { -{ 200, LR|TB, 400, NULL, (void*) list, NULL, NULL, ListBox, "" }, +{ 200, LR|TB, 400, NULL, (void*) list, NULL, NULL, ListBox, "", &appData.gameListFont }, { 0, 0, 100, NULL, (void*) &filterPtr, "", NULL, TextBox, "" }, { 4, SAME_ROW, 0, NULL, (void*) &GL_Button, NULL, NULL, Button, N_("find position") }, { 2, SAME_ROW, 0, NULL, (void*) &GL_Button, NULL, NULL, Button, N_("narrow") }, // buttons referred to by ID in value (=first) field! @@ -190,7 +190,7 @@ GameListPrepare (int byPos, int narrow) if(lg->number % 2000 == 0) { char buf[MSG_SIZ]; snprintf(buf, MSG_SIZ, _("Scanning through games (%d)"), lg->number); - DisplayTitle(buf); + DisplayTitle(buf); DoEvents(); } lg->position = pos; lg = (ListGame *) lg->node.succ; @@ -221,6 +221,13 @@ GameListReplace (int page) } void +GameListUpdate () +{ + GameListPrepare(False, False); + GameListReplace(0); +} + +void GameListPopUp (FILE *fp, char *filename) { if (glc == NULL) { @@ -242,6 +249,7 @@ GameListPopUp (FILE *fp, char *filename) page = 0; GameListReplace(0); // [HGM] filter: code put in separate routine, and also called to set title MarkMenu("View.GameList", GameListDlg); + EnableNamedMenuItem("File.SaveSelected", TRUE); } FILE * @@ -254,6 +262,7 @@ void GameListDestroy () { if (glc == NULL) return; + EnableNamedMenuItem("File.SaveSelected", FALSE); PopDown(GameListDlg); if (glc->strings != NULL) { char **st;