diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-30 12:19:08 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-30 12:19:08 +0000 |
commit | 3cd184b9423dd6952d542594a349fdf8f38d5fc7 (patch) | |
tree | 45517194c7ed1538b890c0c1e1bb4bafc8850883 /protocols | |
parent | 2c86d89ad72c783b1bbe5aaaf6a9f3755bb41e5a (diff) |
fix for menu problems
git-svn-id: http://svn.miranda-ng.org/main/trunk@14453 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/FacebookRM/src/theme.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
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;
}
|