summaryrefslogtreecommitdiff
path: root/plugins/SimpleAR/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/SimpleAR/src')
-rw-r--r--plugins/SimpleAR/src/Main.cpp9
-rw-r--r--plugins/SimpleAR/src/stdafx.h2
2 files changed, 5 insertions, 6 deletions
diff --git a/plugins/SimpleAR/src/Main.cpp b/plugins/SimpleAR/src/Main.cpp
index 56064ab583..98e99e3200 100644
--- a/plugins/SimpleAR/src/Main.cpp
+++ b/plugins/SimpleAR/src/Main.cpp
@@ -238,10 +238,10 @@ INT addEvent(WPARAM hContact, LPARAM hDBEvent)
/////////////////////////////////////////////////////////////////////////////////////////
-IconItemT iconList[] =
+IconItem iconList[] =
{
- { LPGENW("Disable Auto&reply"), "Disable Auto&reply", IDI_OFF },
- { LPGENW("Enable Auto&reply"), "Enable Auto&reply", IDI_ON }
+ { LPGEN("Disable Auto&reply"), "Disable Auto&reply", IDI_OFF },
+ { LPGEN("Enable Auto&reply"), "Enable Auto&reply", IDI_ON }
};
extern "C" int __declspec(dllexport)Load(void)
@@ -271,8 +271,7 @@ extern "C" int __declspec(dllexport)Load(void)
HookEvent(ME_DB_EVENT_ADDED, addEvent);
HookEvent(ME_SYSTEM_MODULESLOADED, CheckDefaults);
- Icon_RegisterT(g_plugin.getInst(), L"Simple Auto Replier", iconList, _countof(iconList));
-
+ g_plugin.registerIcon("Simple Auto Replier", iconList);
return 0;
}
diff --git a/plugins/SimpleAR/src/stdafx.h b/plugins/SimpleAR/src/stdafx.h
index 2ba5c1c970..863bdca124 100644
--- a/plugins/SimpleAR/src/stdafx.h
+++ b/plugins/SimpleAR/src/stdafx.h
@@ -34,6 +34,6 @@ struct CMPlugin : public PLUGIN<CMPlugin>
extern INT interval;
extern wchar_t *ptszDefaultMsg[6];
extern HGENMENU hEnableMenu;
-extern IconItemT iconList[];
+extern IconItem iconList[];
extern INT OptInit(WPARAM wParam, LPARAM lParam);