From 9238c4e3aa9df5d0726cf3a03e632bc3d3969711 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 2 Jul 2015 13:15:30 +0000 Subject: 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 --- protocols/JabberG/src/jabber_privacy.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/JabberG/src/jabber_privacy.cpp') 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; -- cgit v1.2.3