summaryrefslogtreecommitdiff
path: root/plugins/SpellChecker/src/spellchecker.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SpellChecker/src/spellchecker.cpp')
-rw-r--r--plugins/SpellChecker/src/spellchecker.cpp30
1 files changed, 14 insertions, 16 deletions
diff --git a/plugins/SpellChecker/src/spellchecker.cpp b/plugins/SpellChecker/src/spellchecker.cpp
index 3a0d162706..f932eac92b 100644
--- a/plugins/SpellChecker/src/spellchecker.cpp
+++ b/plugins/SpellChecker/src/spellchecker.cpp
@@ -71,26 +71,24 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
static int IconsChanged(WPARAM wParam, LPARAM lParam)
{
- if ( ServiceExists(MS_MSG_MODIFYICON)) {
- StatusIconData sid = { sizeof(sid) };
- sid.szModule = MODULE_NAME;
- sid.hIconDisabled = Skin_GetIcon("spellchecker_disabled");
- sid.flags = MBF_HIDDEN;
+ StatusIconData sid = { sizeof(sid) };
+ sid.szModule = MODULE_NAME;
+ sid.hIconDisabled = Skin_GetIcon("spellchecker_disabled");
+ sid.flags = MBF_HIDDEN;
- for (int i = 0; i < languages.getCount(); i++) {
- sid.dwId = i;
+ for (int i = 0; i < languages.getCount(); i++) {
+ sid.dwId = i;
- char tmp[128];
- mir_snprintf(tmp, SIZEOF(tmp), "%s - %S",
- Translate("Spell Checker"), languages[i]->full_name);
- sid.szTooltip = tmp;
+ char tmp[128];
+ mir_snprintf(tmp, SIZEOF(tmp), "%s - %S",
+ Translate("Spell Checker"), languages[i]->full_name);
+ sid.szTooltip = tmp;
- HICON hIcon = (opts.use_flags) ? Skin_GetIconByHandle(languages[i]->hIcolib) : Skin_GetIcon("spellchecker_enabled");
- sid.hIcon = CopyIcon(hIcon);
- Skin_ReleaseIcon(hIcon);
+ HICON hIcon = (opts.use_flags) ? Skin_GetIconByHandle(languages[i]->hIcolib) : Skin_GetIcon("spellchecker_enabled");
+ sid.hIcon = CopyIcon(hIcon);
+ Skin_ReleaseIcon(hIcon);
- CallService(MS_MSG_MODIFYICON, 0, (LPARAM) &sid);
- }
+ Srmm_ModifyIcon(NULL, &sid);
}
return 0;