diff options
author | Robert Pösel <robyer@seznam.cz> | 2013-07-28 12:37:37 +0000 |
---|---|---|
committer | Robert Pösel <robyer@seznam.cz> | 2013-07-28 12:37:37 +0000 |
commit | 66cb0e5b93b88b84599c1c32f46a3ff847517c57 (patch) | |
tree | 848cb290bdc68a037cb500f66d9fafc83c66c91c /protocols/FacebookRM/src/theme.cpp | |
parent | 2e2d9de08e3eb747f88cd3a9aeb750a3c34078a7 (diff) |
Facebook: Post status improvements (part 2) - ability to post statuses to other contact's wall
git-svn-id: http://svn.miranda-ng.org/main/trunk@5509 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/theme.cpp')
-rw-r--r-- | protocols/FacebookRM/src/theme.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index ffed611d22..ce3fc657d3 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -101,6 +101,13 @@ void InitContactMenus() CreateServiceFunction(mi.pszService,GlobalService<&FacebookProto::VisitFriendship>);
g_hContactMenuItems[CMI_VISIT_FRIENDSHIP] = Menu_AddContactMenuItem(&mi);
+ mi.position=-2000006001;
+ mi.icolibItem = GetIconHandle("mind");
+ mi.pszName = LPGEN("Share status...");
+ mi.pszService = "FacebookProto/Mind";
+ CreateServiceFunction(mi.pszService,GlobalService<&FacebookProto::OnMind>);
+ g_hContactMenuItems[CMI_POST_STATUS] = Menu_AddContactMenuItem(&mi);
+
mi.position=-2000006002;
mi.icolibItem = GetIconHandle("poke");
mi.pszName = LPGEN("Poke");
@@ -150,6 +157,7 @@ int FacebookProto::OnPrebuildContactMenu(WPARAM wParam,LPARAM lParam) Menu_ShowItem(g_hContactMenuItems[CMI_VISIT_PROFILE], true);
Menu_ShowItem(g_hContactMenuItems[CMI_VISIT_FRIENDSHIP], !bIsChatroom);
+ Menu_ShowItem(g_hContactMenuItems[CMI_POST_STATUS], !bIsChatroom);
if (!isOffline() && !bIsChatroom)
{
@@ -196,7 +204,7 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam) //CreateProtoService(m_szModuleName,"/Mind",&FacebookProto::OnMind,this);
strcpy(tDest,"/Mind");
mi.hParentMenu = hRoot;
- mi.pszName = LPGEN("Mind...");
+ mi.pszName = LPGEN("Share status...");
mi.icolibItem = GetIconHandle("mind");
m_hStatusMind = Menu_AddProtoMenuItem(&mi);
|