Change the spell checker and thesaurus language lists to radio items rather than check items

Originally committed to SVN as r6712.
This commit is contained in:
Thomas Goyne 2012-04-21 15:13:51 +00:00
parent 0a64763f2f
commit fb5f94ca74

View file

@ -837,11 +837,11 @@ void SubsTextEditCtrl::AddThesaurusEntries(wxMenu &menu) {
wxMenu *SubsTextEditCtrl::GetLanguagesMenu(int base_id, wxString const& curLang, wxArrayString const& langs) {
wxMenu *languageMenu = new wxMenu;
languageMenu->AppendCheckItem(base_id, _("Disable"))->Check(curLang.empty());
languageMenu->AppendRadioItem(base_id, _("Disable"))->Check(curLang.empty());
for (size_t i = 0; i < langs.size(); ++i) {
const wxLanguageInfo *info = wxLocale::FindLanguageInfo(langs[i]);
languageMenu->AppendCheckItem(base_id + i + 1, info ? info->Description : langs[i])->Check(langs[i] == curLang);
languageMenu->AppendRadioItem(base_id + i + 1, info ? info->Description : langs[i])->Check(langs[i] == curLang);
}
return languageMenu;