summaryrefslogtreecommitdiff
path: root/plugins/Alarms/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-22 18:00:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-22 18:00:57 +0300
commitfeac2b1a6a79c9d0bb58b0825ec2a776b888f9ce (patch)
treeef2fde024f8e13ac1ff5f2de8c772066319b3e6c /plugins/Alarms/src
parent737d05018bbc2da54414bea0c2ccce6f1e15bde2 (diff)
m_genmenu.h unbound from hLangpack
Diffstat (limited to 'plugins/Alarms/src')
-rwxr-xr-xplugins/Alarms/src/frame.cpp4
-rwxr-xr-xplugins/Alarms/src/options.cpp4
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Alarms/src/frame.cpp b/plugins/Alarms/src/frame.cpp
index 9836ab3858..f9c435a518 100755
--- a/plugins/Alarms/src/frame.cpp
+++ b/plugins/Alarms/src/frame.cpp
@@ -521,8 +521,8 @@ int CreateFrame()
// create menu item
CreateServiceFunction(MODULENAME "/ShowHideReminders", ShowHideMenuFunc);
- CMenuItem mi;
- mi.root = Menu_CreateRoot(MO_MAIN, LPGENW("Alarms"), 0);
+ CMenuItem mi(g_plugin);
+ mi.root = g_plugin.addRootMenu(MO_MAIN, LPGENW("Alarms"), 0);
Menu_ConfigureItem(mi.root, MCI_OPT_UID, "8A3C1906-4809-4EE8-A32A-858003A2AAA7");
SET_UID(mi, 0x27556ea9, 0xfa19, 0x4c2e, 0xb0, 0xc9, 0x48, 0x2, 0x5c, 0x17, 0xba, 0x5);
diff --git a/plugins/Alarms/src/options.cpp b/plugins/Alarms/src/options.cpp
index d756fe850f..3b9027af7a 100755
--- a/plugins/Alarms/src/options.cpp
+++ b/plugins/Alarms/src/options.cpp
@@ -811,9 +811,9 @@ void AddMenuItem()
{
if (hMainMenuItem) return;
- CMenuItem mi;
+ CMenuItem mi(g_plugin);
if (!ServiceExists(MS_CLIST_FRAMES_ADDFRAME)) {
- mi.root = Menu_CreateRoot(MO_MAIN, LPGENW("Alarms"), mi.position);
+ mi.root = g_plugin.addRootMenu(MO_MAIN, LPGENW("Alarms"), mi.position);
Menu_ConfigureItem(mi.root, MCI_OPT_UID, "24F03563-01BE-4118-8297-E94375A783E7");
}