From 3cd184b9423dd6952d542594a349fdf8f38d5fc7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 30 Jun 2015 12:19:08 +0000 Subject: fix for menu problems git-svn-id: http://svn.miranda-ng.org/main/trunk@14453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/theme.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols/FacebookRM/src/theme.cpp') diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index 12109dfe9c..1c0abafb6d 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -225,7 +225,6 @@ int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM) } CMenuItem mi; - mi.flags = (this->isOnline() ? 0 : CMIF_GRAYED); mi.position = 201001; mi.root = hRoot; @@ -248,7 +247,9 @@ int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM) Menu_AddProtoMenuItem(&mi, m_szModuleName); // Services... - mi.root = m_hMenuServicesRoot = Menu_CreateRoot(MO_PROTO, LPGENT("Services..."), mi.position, Skin_GetIconHandle(SKINICON_OTHER_HELP)); + mi.name.a = LPGEN("Services..."); + mi.hIcolibItem = Skin_GetIconHandle(SKINICON_OTHER_HELP); + mi.root = m_hMenuServicesRoot = Menu_AddProtoMenuItem(&mi, m_szModuleName); mi.pszService = "/RefreshBuddyList"; CreateProtoService(mi.pszService, &FacebookProto::RefreshBuddyList); @@ -267,6 +268,8 @@ int FacebookProto::OnBuildStatusMenu(WPARAM, LPARAM) mi.name.a = LPGEN("Check Newsfeeds"); mi.hIcolibItem = GetIconHandle("newsfeed"); Menu_AddProtoMenuItem(&mi, m_szModuleName); + + ToggleStatusMenuItems(this->isOnline()); return 0; } -- cgit v1.2.3