diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-02 19:04:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-02 19:04:21 +0000 |
commit | 209e1040e34c50e424a7aa0a7c860c7fc279a76f (patch) | |
tree | 96742a262043ca7155d75414ae48b3907f3e2881 /plugins/Quotes | |
parent | 755eaef1f61577c44a9305fb7db3dd25990de52c (diff) |
group menu services moved to core
git-svn-id: http://svn.miranda-ng.org/main/trunk@14472 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes')
-rw-r--r-- | plugins/Quotes/src/Forex.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/plugins/Quotes/src/Forex.cpp b/plugins/Quotes/src/Forex.cpp index 22ced59186..1fc1c4a043 100644 --- a/plugins/Quotes/src/Forex.cpp +++ b/plugins/Quotes/src/Forex.cpp @@ -117,18 +117,9 @@ void InitMenu() Menu_AddMainMenuItem(&mi);
CreateServiceFunction(mi.pszService, QuotesMenu_ImportAll);
- bool bSubGroups = 1 == ServiceExists(MS_CLIST_MENUBUILDSUBGROUP);
-
HookEvent(ME_CLIST_PREBUILDCONTACTMENU, Quotes_PrebuildContactMenu);
- if (bSubGroups) {
- CMenuItem miroot;
- miroot.hIcolibItem = Quotes_GetIconHandle(IDI_ICON_MAIN);
- miroot.name.a = QUOTES_PROTOCOL_NAME;
- mi.root = Menu_AddContactMenuItem(&miroot, QUOTES_PROTOCOL_NAME);
- }
- else mi.root = NULL;
-
+ mi.root = Menu_CreateRoot(MO_CONTACT, _T(QUOTES_PROTOCOL_NAME), 0, Quotes_GetIconHandle(IDI_ICON_MAIN));
mi.name.t = LPGENT("Refresh");
mi.hIcolibItem = Quotes_GetIconHandle(IDI_ICON_REFRESH);
mi.pszService = "Quotes/RefreshContact";
|