summaryrefslogtreecommitdiff
path: root/plugins/MobileState
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-18 21:56:03 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-18 21:56:03 +0300
commitcb4d31922f0690f5a3c79526245c963bfd118864 (patch)
treea6826371092617844c19772e73bf4e5756400140 /plugins/MobileState
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'plugins/MobileState')
-rw-r--r--plugins/MobileState/src/main.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/MobileState/src/main.cpp b/plugins/MobileState/src/main.cpp
index eb52dbba7f..ebb2f68ea1 100644
--- a/plugins/MobileState/src/main.cpp
+++ b/plugins/MobileState/src/main.cpp
@@ -24,7 +24,10 @@ CMPlugin g_plugin;
HANDLE hExtraIcon = nullptr;
-static IconItem icon = { LPGEN("Mobile State"), "mobile_icon", IDI_MOBILE };
+static IconItem iconList[] =
+{
+ { LPGEN("Mobile State"), "mobile_icon", IDI_MOBILE }
+};
/////////////////////////////////////////////////////////////////////////////////////////
@@ -112,7 +115,7 @@ extern "C" int __declspec(dllexport) Load(void)
HookEvent(ME_CLIST_EXTRA_IMAGE_APPLY, ExtraIconsApply);
// IcoLib support
- Icon_Register(g_plugin.getInst(), "Mobile State", &icon, 1);
+ g_plugin.registerIcon("Mobile State", iconList);
// Extra icons
hExtraIcon = ExtraIcon_RegisterIcolib("mobilestate", LPGEN("Mobile State"), "mobile_icon");