summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2017-09-18 23:09:05 +0300
committerKirill Volinsky <mataes2007@gmail.com>2017-09-18 23:09:05 +0300
commit54b0d7050646da8099e4559ef5fcfba1b57d0957 (patch)
tree4c50c082b433879b9da6d00ebf1c2e4f57682709 /plugins
parent07e552f62b366f8ec30551ad9826d8954124b696 (diff)
TabSRMM: all icons added to icolib (fixes #301)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/TabSRMM/src/msgs.cpp12
-rw-r--r--plugins/TabSRMM/src/typingnotify.cpp8
2 files changed, 16 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/msgs.cpp b/plugins/TabSRMM/src/msgs.cpp
index 2322e9a7aa..411717f89b 100644
--- a/plugins/TabSRMM/src/msgs.cpp
+++ b/plugins/TabSRMM/src/msgs.cpp
@@ -908,6 +908,18 @@ static int TSAPI SetupIconLibConfig()
sid.description.a = LPGEN("Feature enabled (used as overlay)");
sid.iDefaultIndex = -IDI_FEATURE_ENABLED;
IcoLib_AddIcon(&sid);
+
+ sid.section.a = LPGEN("Message Sessions") "/" LPGEN("Popups");
+ sid.pszName = "tabSRMM_popups_disabled";
+ sid.description.a = LPGEN("Enable typing notification");
+ sid.iDefaultIndex = -IDI_DISABLED;
+ IcoLib_AddIcon(&sid);
+
+ sid.pszName = "tabSRMM_popups_enabled";
+ sid.description.a = LPGEN("Disable typing notification");
+ sid.iDefaultIndex = -IDI_ENABLED;
+ IcoLib_AddIcon(&sid);
+
return 1;
}
diff --git a/plugins/TabSRMM/src/typingnotify.cpp b/plugins/TabSRMM/src/typingnotify.cpp
index f3757364e5..48da8a6311 100644
--- a/plugins/TabSRMM/src/typingnotify.cpp
+++ b/plugins/TabSRMM/src/typingnotify.cpp
@@ -45,9 +45,9 @@ static INT_PTR EnableDisableMenuCommand(WPARAM, LPARAM)
if (PluginConfig.g_bPopupAvail) {
if (!Disabled)
- Menu_ModifyItem(hDisableMenu, LPGENW("Disable &typing notification"), LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_ENABLED)));
+ Menu_ModifyItem(hDisableMenu, LPGENW("Disable &typing notification"), IcoLib_GetIcon("tabSRMM_popups_enabled"));
else
- Menu_ModifyItem(hDisableMenu, LPGENW("Enable &typing notification"), LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_DISABLED)));
+ Menu_ModifyItem(hDisableMenu, LPGENW("Enable &typing notification"), IcoLib_GetIcon("tabSRMM_popups_disabled"));
}
return 0;
@@ -535,11 +535,11 @@ int TN_ModuleInit()
SET_UID(mi, 0xe18fd2cf, 0xcf90, 0x459e, 0xb6, 0xe6, 0x70, 0xec, 0xad, 0xc6, 0x73, 0xef);
if (!Disabled) {
mi.name.a = LPGEN("Disable &typing notification");
- mi.hIcolibItem = LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_ENABLED));
+ mi.hIcolibItem = IcoLib_GetIcon("tabSRMM_popups_enabled");
}
else {
mi.name.a = LPGEN("Enable &typing notification");
- mi.hIcolibItem = LoadIcon(g_hInst, MAKEINTRESOURCE(IDI_DISABLED));
+ mi.hIcolibItem = IcoLib_GetIcon("tabSRMM_popups_disabled");
}
mi.pszService = "TypingNotify/EnableDisableMenuCommand";
mi.root = Menu_CreateRoot(MO_MAIN, LPGENW("Popups"), 0);