summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/variables.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/Variables/src/variables.cpp
parent37a022d37e79dbe9892f376ef7c3b6b8878c4aff (diff)
Icon_Register(g_plugin.getInst() => g_plugin.registerIcon
Icon_RegisterT(g_plugin.getInst() => g_plugin.registerIconW
Diffstat (limited to 'plugins/Variables/src/variables.cpp')
-rw-r--r--plugins/Variables/src/variables.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/plugins/Variables/src/variables.cpp b/plugins/Variables/src/variables.cpp
index fc7ea14a6e..76a6551c73 100644
--- a/plugins/Variables/src/variables.cpp
+++ b/plugins/Variables/src/variables.cpp
@@ -406,7 +406,10 @@ int setParseOptions(struct ParseOptions *po)
return 0;
}
-static IconItem icon = { LPGEN("Help"), "vars_help", IDI_V };
+static IconItem iconList[] =
+{
+ { LPGEN("Help"), "vars_help", IDI_V }
+};
int LoadVarModule()
{
@@ -422,7 +425,7 @@ int LoadVarModule()
CreateServiceFunction(MS_VARS_SHOWHELP, showHelpService);
CreateServiceFunction(MS_VARS_SHOWHELPEX, showHelpExService);
- Icon_Register(g_plugin.getInst(), LPGEN("Variables"), &icon, 1);
+ g_plugin.registerIcon(LPGEN("Variables"), iconList);
hIconsChangedHook = HookEvent(ME_SKIN2_ICONSCHANGED, iconsChanged);