summaryrefslogtreecommitdiff
path: root/plugins/Restart/src/restart.cpp
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/Restart/src/restart.cpp
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'plugins/Restart/src/restart.cpp')
-rw-r--r--plugins/Restart/src/restart.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/Restart/src/restart.cpp b/plugins/Restart/src/restart.cpp
index c217e6ff41..0616cf01d6 100644
--- a/plugins/Restart/src/restart.cpp
+++ b/plugins/Restart/src/restart.cpp
@@ -39,21 +39,24 @@ static INT_PTR RestartMe(WPARAM, LPARAM)
return 0;
}
-static IconItem icon = { LPGEN("Restart"), "rst_restart_icon", IDI_RESTARTICON };
+static IconItem iconList[] =
+{
+ { LPGEN("Restart"), "rst_restart_icon", IDI_RESTARTICON }
+};
extern "C" __declspec(dllexport) int Load(void)
{
mir_getLP( &pluginInfo );
// IcoLib support
- Icon_Register(g_plugin.getInst(), LPGEN("Restart Plugin"), &icon, 1);
+ g_plugin.registerIcon(LPGEN("Restart Plugin"), iconList);
hRestartMe = CreateServiceFunction("System/RestartMe", RestartMe);
CMenuItem mi;
SET_UID(mi, 0x9181059, 0x5316, 0x4be3, 0x96, 0xb7, 0x80, 0x51, 0xa9, 0x3a, 0xd8, 0x49);
mi.position = -0x7FFFFFFF;
- mi.hIcolibItem = icon.hIcolib;
+ mi.hIcolibItem = iconList[0].hIcolib;
mi.name.a = LPGEN("Restart");
mi.pszService = "System/RestartMe";
Menu_AddMainMenuItem(&mi);