summaryrefslogtreecommitdiff
path: root/plugins/Variables/src/variables.cpp
diff options
context:
space:
mode:
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);