summaryrefslogtreecommitdiff
path: root/plugins/testplugin/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/testplugin/src')
-rw-r--r--plugins/testplugin/src/testplug.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/testplugin/src/testplug.cpp b/plugins/testplugin/src/testplug.cpp
index 2c98789edc..2edf570fec 100644
--- a/plugins/testplugin/src/testplug.cpp
+++ b/plugins/testplugin/src/testplug.cpp
@@ -57,14 +57,12 @@ extern "C" __declspec(dllexport) int Load()
{
mir_getLP(&pluginInfo);
- CLISTMENUITEM mi = {0};
-
+ CMenuItem mi;
CreateServiceFunction("TestPlug/MenuCommand", PluginMenuCommand);
- mi.cbSize = sizeof(mi);
mi.position = -0x7FFFFFFF;
mi.flags = CMIF_TCHAR;
- mi.hIcon = LoadSkinnedIcon(SKINICON_OTHER_MIRANDA);
- mi.ptszName = LPGENT("&Test Plugin...");
+ mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_MIRANDA);
+ mi.name.t = LPGENT("&Test Plugin...");
mi.pszService = "TestPlug/MenuCommand";
Menu_AddMainMenuItem(&mi);
return 0;