summaryrefslogtreecommitdiff
path: root/plugins/ProfileManager/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2015-12-23 13:13:36 +0000
committerGeorge Hazan <george.hazan@gmail.com>2015-12-23 13:13:36 +0000
commiteaa82e557588e34ff560335fe4a40daef2605e92 (patch)
treea406654e6e7041dd382e0608a4dc3ad1e7d90778 /plugins/ProfileManager/src
parent0c48ac69632ff6137d8f62d578e2f3dbc2d56ec2 (diff)
missing UIDs (yet another damned helper)
git-svn-id: http://svn.miranda-ng.org/main/trunk@15937 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/ProfileManager/src')
-rw-r--r--plugins/ProfileManager/src/pmanagerEx.cpp34
1 files changed, 19 insertions, 15 deletions
diff --git a/plugins/ProfileManager/src/pmanagerEx.cpp b/plugins/ProfileManager/src/pmanagerEx.cpp
index a92f724b19..c8c4b30b93 100644
--- a/plugins/ProfileManager/src/pmanagerEx.cpp
+++ b/plugins/ProfileManager/src/pmanagerEx.cpp
@@ -92,21 +92,13 @@ static IconItem iconList[] =
{ LPGEN("Restart"), SRV_RESTART_ME, IDI_Restart }
};
-static int OnModulesLoaded(WPARAM, LPARAM)
+static MUUID uids[_countof(iconList)] =
{
- CMenuItem mi;
- mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), -500200000);
-
- for (int i = 0; i < _countof(iconList); i++) {
- mi.name.a = iconList[i].szDescr;
- mi.pszService = iconList[i].szName;
- mi.hIcolibItem = iconList[i].hIcolib;
- if (i == 3)
- mi.root = NULL;
- Menu_AddMainMenuItem(&mi);
- }
- return 0;
-}
+ { 0xF57779C7, 0xB593, 0x4851, 0x94, 0x3A, 0xEB, 0x90, 0x95, 0x40, 0x0D, 0x2A },
+ { 0x701BFC6C, 0x6963, 0x4A4C, 0xA6, 0x39, 0x9B, 0xC0, 0x97, 0x64, 0xFD, 0xCE },
+ { 0x3C4409EC, 0xF733, 0x4C33, 0x94, 0x0C, 0x35, 0xAF, 0x36, 0xC6, 0x64, 0x32 },
+ { 0x5A2EDCCD, 0xB43B, 0x48FA, 0x8A, 0xE8, 0xB5, 0x8B, 0xD7, 0xA5, 0x5A, 0x13 }
+};
extern "C" __declspec(dllexport) int Load(void)
{
@@ -119,7 +111,19 @@ extern "C" __declspec(dllexport) int Load(void)
CreateServiceFunction(SRV_CHANGE_PM, ChangePM);
CreateServiceFunction(SRV_RESTART_ME, RestartMe);
- HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
+ CMenuItem mi;
+ mi.root = Menu_CreateRoot(MO_MAIN, LPGENT("Database"), -500200000);
+
+ for (int i = 0; i < _countof(iconList); i++) {
+ mi.name.a = iconList[i].szDescr;
+ mi.pszService = iconList[i].szName;
+ mi.hIcolibItem = iconList[i].hIcolib;
+ mi.uid = uids[i];
+ if (i == 3)
+ mi.root = NULL;
+
+ Menu_AddMainMenuItem(&mi);
+ }
return 0;
}