X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=ngamelist.c;h=72529a4281246960c3fe6b03d40e002bf723bb8e;hb=868622bc4b4ac3f5179909e9776ebcb309dd01c9;hp=f3ef1d977bbd069ac4779fc2c92e5797e82cd8de;hpb=26897ecf6be30b8ccc64285e1e293ab76df38ab9;p=xboard.git diff --git a/ngamelist.c b/ngamelist.c index f3ef1d9..72529a4 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, ListBox, "" }, +{ 200, LR|TB, 400, NULL, (void*) list, NULL, NULL, ListBox, "" }, { 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! @@ -152,8 +152,8 @@ GameListCreate (char *name) { int new; if(new = GenericPopUp(gamesOptions, name, GameListDlg, BoardWindow, NONMODAL, 1)) - AddHandler(&gamesOptions[1], 4), - AddHandler(&gamesOptions[0], 5); + AddHandler(&gamesOptions[1], GameListDlg, 4), + AddHandler(&gamesOptions[0], GameListDlg, 5); FocusOnWidget(&gamesOptions[0], GameListDlg); return new; } @@ -214,7 +214,7 @@ GameListReplace (int page) if(page + 1000 <= listLength) *st++ = _("next page"); *st = NULL; - LoadListBox(&gamesOptions[0], _("no games matched your request")); + LoadListBox(&gamesOptions[0], _("no games matched your request"), -1, -1); HighlightWithScroll(&gamesOptions[0], listEnd > 1000, listEnd); snprintf(buf, MSG_SIZ, _("%s - %d/%d games (%d-%d-%d)"), glc->filename, listLength, ((ListGame *) gameList.tailPred)->number, wins, losses, draws); SetDialogTitle(GameListDlg, buf);