diff options
author | George Hazan <ghazan@miranda.im> | 2023-03-06 17:49:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-03-06 17:49:39 +0300 |
commit | 44fc5738c808a028ecd74df2d92529f66c1ceca8 (patch) | |
tree | bd9f5a3917f687207234b8e2f83a92d4ea9a33f6 /protocols | |
parent | 35544c08d3f45070e2d18e18a174fc0c8a0500c5 (diff) |
fixes #3400 (Удалить настройки шрифта фрейма Jabber)
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/JabberG/src/jabber.cpp | 33 | ||||
-rw-r--r-- | protocols/JabberG/src/jabber_opt.cpp | 7 |
2 files changed, 3 insertions, 37 deletions
diff --git a/protocols/JabberG/src/jabber.cpp b/protocols/JabberG/src/jabber.cpp index b7fd7ae0af..e65d2688cc 100644 --- a/protocols/JabberG/src/jabber.cpp +++ b/protocols/JabberG/src/jabber.cpp @@ -113,39 +113,6 @@ static int OnModulesLoaded(WPARAM, LPARAM) CreateServiceFunction("JABBER/*" JS_PARSE_XMPP_URI, g_SvcParseXmppUri);
AssocMgr_AddNewUrlTypeW("xmpp:", TranslateT("Jabber Link Protocol"), g_plugin.getInst(), IDI_JABBER, "JABBER/*" JS_PARSE_XMPP_URI, 0);
}
-
- // init fontservice for info frame
- FontIDW fontid = {};
- wcsncpy_s(fontid.group, LPGENW("Jabber"), _TRUNCATE);
- strncpy_s(fontid.dbSettingsGroup, GLOBAL_SETTING_MODULE, _TRUNCATE);
- wcsncpy_s(fontid.backgroundGroup, L"Jabber", _TRUNCATE);
- wcsncpy_s(fontid.backgroundName, L"Background", _TRUNCATE);
- fontid.flags = FIDF_DEFAULTVALID;
-
- fontid.deffontsettings.charset = DEFAULT_CHARSET;
- fontid.deffontsettings.colour = GetSysColor(COLOR_WINDOWTEXT);
- fontid.deffontsettings.size = -11;
- mir_wstrncpy(fontid.deffontsettings.szFace, L"MS Shell Dlg", _countof(fontid.deffontsettings.szFace));
- fontid.deffontsettings.style = 0;
-
- wcsncpy_s(fontid.name, LPGENW("Frame title"), _TRUNCATE);
- strncpy_s(fontid.setting, "fntFrameTitle", _TRUNCATE);
- fontid.deffontsettings.style = DBFONTF_BOLD;
- g_plugin.addFont(&fontid);
-
- wcsncpy_s(fontid.name, LPGENW("Frame text"), _TRUNCATE);
- strncpy_s(fontid.setting, "fntFrameClock", _TRUNCATE);
- fontid.deffontsettings.style = 0;
- g_plugin.addFont(&fontid);
-
- ColourIDW colourid = {};
- wcsncpy_s(colourid.group, L"Jabber", _TRUNCATE);
- strncpy_s(colourid.dbSettingsGroup, GLOBAL_SETTING_MODULE, _TRUNCATE);
-
- wcsncpy_s(colourid.name, L"Background", _TRUNCATE);
- strncpy_s(colourid.setting, "clFrameBack", _TRUNCATE);
- colourid.defcolour = GetSysColor(COLOR_WINDOW);
- g_plugin.addColor(&colourid);
return 0;
}
diff --git a/protocols/JabberG/src/jabber_opt.cpp b/protocols/JabberG/src/jabber_opt.cpp index 03fce21924..b04a401774 100644 --- a/protocols/JabberG/src/jabber_opt.cpp +++ b/protocols/JabberG/src/jabber_opt.cpp @@ -218,7 +218,6 @@ struct { char *szCode; wchar_t *szDescription; } g_LanguageCodes[] = { { "yo", LPGENW("Yoruba") },
{ "za", LPGENW("Zhuang; Chuang") },
{ "zu", LPGENW("Zulu") },
- { nullptr, nullptr }
};
class CJabberDlgRegister : public CJabberDlgBase
@@ -446,9 +445,9 @@ protected: }
else m_cbResource.SetText(L"Miranda");
- for (int i = 0; g_LanguageCodes[i].szCode; i++) {
- int iItem = m_cbLocale.AddString(TranslateW(g_LanguageCodes[i].szDescription), (LPARAM)g_LanguageCodes[i].szCode);
- if (!mir_strcmp(m_proto->m_tszSelectedLang, g_LanguageCodes[i].szCode))
+ for (auto &it : g_LanguageCodes) {
+ int iItem = m_cbLocale.AddString(TranslateW(it.szDescription), (LPARAM)it.szCode);
+ if (!mir_strcmp(m_proto->m_tszSelectedLang, it.szCode))
m_cbLocale.SetCurSel(iItem);
}
|