X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=8de450d1e2d72b2f1658c01836c62dc0fec364ec;hb=73419c47f539f4f6d0700fe8ec89bb0f6259c94e;hp=10de8cf41fb1073a42cc2bf627b28dfd009c9586;hpb=412e5bff85b4e47d337cfb4923cc406325903df2;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 10de8cf..8de450d 100644 --- a/dialogs.c +++ b/dialogs.c @@ -611,10 +611,16 @@ static Option loadOptions[] = { }; void -LoadOptionsProc () +LoadOptionsPopUp (DialogClass parent) { ASSIGN(searchMode, modeValues[appData.searchMode-1]); - GenericPopUp(loadOptions, _("Load Game Options"), TransientDlg, BoardWindow, MODAL, 0); + GenericPopUp(loadOptions, _("Load Game Options"), TransientDlg, parent, MODAL, 0); +} + +void +LoadOptionsProc () +{ // called from menu + LoadOptionsPopUp(BoardWindow); } //------------------------------------------- Save Game Options -------------------------------------------- @@ -1546,18 +1552,24 @@ GLT_Button (int n) safeStrCpy(lpUserGLT, GLT_DEFAULT_TAGS, LPUSERGLT_SIZE); GLT_TagsToList(lpUserGLT); index = 0; - LoadListBox(&listOptions[0]); // Note: the others don't need this, as the highligh + LoadListBox(&listOptions[0], "?"); // Note: the others don't need this, as the highlight switching redraws the change items } HighlightListBoxItem(&listOptions[0], index); } void -GameListOptionsPopUp () +GameListOptionsPopUp (DialogClass parent) { safeStrCpy(lpUserGLT, appData.gameListTags, LPUSERGLT_SIZE); GLT_TagsToList(lpUserGLT); - GenericPopUp(listOptions, _("Game-list options"), TransientDlg); + GenericPopUp(listOptions, _("Game-list options"), TransientDlg, parent, MODAL, 0); +} + +void +GameListOptionsProc () +{ + GameListOptionsPopUp(BoardWindow); } //----------------------------- Error popup in various uses -----------------------------