diff options
author | George Hazan <george.hazan@gmail.com> | 2015-07-02 13:15:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-07-02 13:15:30 +0000 |
commit | 9238c4e3aa9df5d0726cf3a03e632bc3d3969711 (patch) | |
tree | e5d95695014b33a99e19c4b19472e9dc69db7c5d /protocols/JabberG/src/jabber_privacy.cpp | |
parent | 2481102c6541df37a773569dd4d67b579f04d819 (diff) |
two new flags of TMO_MenuItem:
- CMIF_SYSTEM: filters a menu item out of options' editor;
- CMIF_UNMOVABLE: denies attempts to change the item's position;
- CMIF_SYSTEM applied to frames' menu;
- CMIF_UNMOVABLE applied to Jabber protocol menu items;
git-svn-id: http://svn.miranda-ng.org/main/trunk@14468 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_privacy.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_privacy.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_privacy.cpp b/protocols/JabberG/src/jabber_privacy.cpp index f70aa8741e..5264a5b250 100644 --- a/protocols/JabberG/src/jabber_privacy.cpp +++ b/protocols/JabberG/src/jabber_privacy.cpp @@ -2093,7 +2093,7 @@ void CJabberProto::BuildPrivacyMenu() CMenuItem mi;
mi.position = 200005;
mi.hIcolibItem = GetIconHandle(IDI_AGENTS);
- mi.flags = CMIF_HIDDEN;
+ mi.flags = CMIF_UNMOVABLE | CMIF_HIDDEN;
mi.name.a = LPGEN("Privacy Lists");
mi.root = m_hMenuRoot;
m_hPrivacyMenuRoot = Menu_AddProtoMenuItem(&mi);
@@ -2101,7 +2101,7 @@ void CJabberProto::BuildPrivacyMenu() mi.pszService = "/PrivacyLists";
CreateProtoService(mi.pszService, &CJabberProto::OnMenuHandlePrivacyLists);
mi.position = 3000040000;
- mi.flags = CMIF_TCHAR;
+ mi.flags = CMIF_UNMOVABLE | CMIF_TCHAR;
mi.hIcolibItem = GetIconHandle(IDI_PRIVACY_LISTS);
mi.name.t = LPGENT("List Editor...");
mi.root = m_hPrivacyMenuRoot;
@@ -2122,7 +2122,7 @@ void CJabberProto::BuildPrivacyListsMenu(bool bDeleteOld) CMenuItem mi;
mi.position = 2000040000;
- mi.flags = CMIF_TCHAR;
+ mi.flags = CMIF_UNMOVABLE | CMIF_TCHAR;
mi.root = m_hPrivacyMenuRoot;
mi.pszService = srvFce;
|