diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-26 22:03:02 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-26 22:03:02 +0000 |
commit | be616d81bdaf8fd4ae61b0a145fb81bbdf467994 (patch) | |
tree | c0d4798a8e882583f74eb166508e0f4ce96bd4e4 /plugins/Sessions/Src | |
parent | c89c550677f40d8b2010de442053cba81ba06d96 (diff) |
YEEHAW! CLISTMENUITEM::pszPopupName also died
git-svn-id: http://svn.miranda-ng.org/main/trunk@14404 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Sessions/Src')
-rw-r--r-- | plugins/Sessions/Src/Main.cpp | 48 |
1 files changed, 24 insertions, 24 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp index 153ab20540..525e276465 100644 --- a/plugins/Sessions/Src/Main.cpp +++ b/plugins/Sessions/Src/Main.cpp @@ -793,30 +793,30 @@ static int PluginInit(WPARAM, LPARAM) Hotkey_Register(&hkd);
// Main menu
- CLISTMENUITEM cl = { 0 };
- cl.position = 1000000000;
-
- cl.pszName = LPGEN("Save session...");
- cl.pszPopupName = LPGEN("Sessions Manager");
- cl.icolibItem = iconList[4].hIcolib;
- cl.pszService = MS_SESSIONS_SAVEUSERSESSION;
- hmSaveCurrentSession = Menu_AddMainMenuItem(&cl);
-
- cl.pszName = LPGEN("Load session...");
- cl.pszService = MS_SESSIONS_OPENMANAGER;
- cl.icolibItem = iconList[3].hIcolib;
- Menu_AddMainMenuItem(&cl);
-
- cl.pszName = LPGEN("Close session");
- cl.pszService = MS_SESSIONS_CLOSESESSION;
- cl.icolibItem = 0;
- Menu_AddMainMenuItem(&cl);
-
- cl.pszName = LPGEN("Load last session");
- cl.pszService = MS_SESSIONS_RESTORELASTSESSION;
- cl.icolibItem = iconList[5].hIcolib;
- cl.position = 10100000;
- Menu_AddMainMenuItem(&cl);
+ CLISTMENUITEM mi = { 0 };
+ mi.position = 1000000000;
+ mi.hParentMenu = Menu_CreateRoot(MO_MAIN, LPGENT("Sessions Manager"), 1000000000);
+
+ mi.pszName = LPGEN("Save session...");
+ mi.icolibItem = iconList[4].hIcolib;
+ mi.pszService = MS_SESSIONS_SAVEUSERSESSION;
+ hmSaveCurrentSession = Menu_AddMainMenuItem(&mi);
+
+ mi.pszName = LPGEN("Load session...");
+ mi.pszService = MS_SESSIONS_OPENMANAGER;
+ mi.icolibItem = iconList[3].hIcolib;
+ Menu_AddMainMenuItem(&mi);
+
+ mi.pszName = LPGEN("Close session");
+ mi.pszService = MS_SESSIONS_CLOSESESSION;
+ mi.icolibItem = 0;
+ Menu_AddMainMenuItem(&mi);
+
+ mi.pszName = LPGEN("Load last session");
+ mi.pszService = MS_SESSIONS_RESTORELASTSESSION;
+ mi.icolibItem = iconList[5].hIcolib;
+ mi.position = 10100000;
+ Menu_AddMainMenuItem(&mi);
return 0;
}
|