From 6dcfe55905a55fad9169a26d434c93ca15d0717f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 30 Jul 2014 22:36:59 +0000 Subject: Facebook: Support for denying friendship requests git-svn-id: http://svn.miranda-ng.org/main/trunk@9999 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/theme.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'protocols/FacebookRM/src/theme.cpp') diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp index e6b67f6778..50ef5b342b 100644 --- a/protocols/FacebookRM/src/theme.cpp +++ b/protocols/FacebookRM/src/theme.cpp @@ -151,6 +151,13 @@ void InitContactMenus() mi.pszService = "FacebookProto/ApproveFriendship"; CreateServiceFunction(mi.pszService,GlobalService<&FacebookProto::ApproveFriendship>); g_hContactMenuItems[CMI_AUTH_GRANT] = Menu_AddContactMenuItem(&mi); + + mi.position = -2000006014; + mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_REVOKE); + mi.pszName = LPGEN("Deny friendship request"); + mi.pszService = "FacebookProto/DenyFriendship"; + CreateServiceFunction(mi.pszService, GlobalService<&FacebookProto::DenyFriendship>); + g_hContactMenuItems[CMI_AUTH_DENY] = Menu_AddContactMenuItem(&mi); } void UninitContactMenus() @@ -176,8 +183,9 @@ int FacebookProto::OnPrebuildContactMenu(WPARAM wParam,LPARAM lParam) Menu_ShowItem(g_hContactMenuItems[CMI_AUTH_ASK], ctrlPressed || type == CONTACT_NONE || !type); Menu_ShowItem(g_hContactMenuItems[CMI_AUTH_GRANT], ctrlPressed || type == CONTACT_APPROVE); + Menu_ShowItem(g_hContactMenuItems[CMI_AUTH_DENY], ctrlPressed || type == CONTACT_APPROVE); Menu_ShowItem(g_hContactMenuItems[CMI_AUTH_REVOKE], ctrlPressed || type == CONTACT_FRIEND); - Menu_ShowItem(g_hContactMenuItems[CMI_AUTH_CANCEL], ctrlPressed || type == CONTACT_REQUEST); + Menu_ShowItem(g_hContactMenuItems[CMI_AUTH_CANCEL], ctrlPressed || type == CONTACT_REQUEST); Menu_ShowItem(g_hContactMenuItems[CMI_POKE], true); } -- cgit v1.2.3