summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/theme.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-04-21 14:50:48 +0000
committerRobert Pösel <robyer@seznam.cz>2014-04-21 14:50:48 +0000
commit3fd876c2f5fb89007eee0a05c604954e606a589c (patch)
tree9ef288c800543b19a549f2c1be7ad41cfb7c4333 /protocols/FacebookRM/src/theme.cpp
parent0b73250a247cee60ee3f1098f584ae63148e0cee (diff)
Facebook: Add status menu item "Visit Notifications" and icons for other items
git-svn-id: http://svn.miranda-ng.org/main/trunk@9014 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/FacebookRM/src/theme.cpp')
-rw-r--r--protocols/FacebookRM/src/theme.cpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/protocols/FacebookRM/src/theme.cpp b/protocols/FacebookRM/src/theme.cpp
index 03a841abb5..e659319911 100644
--- a/protocols/FacebookRM/src/theme.cpp
+++ b/protocols/FacebookRM/src/theme.cpp
@@ -227,11 +227,17 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam)
// TODO RM: remember and properly free in destructor?
/*m_hStatusMind = */Menu_AddProtoMenuItem(&mi);
+ CreateProtoService("/VisitNotifications", &FacebookProto::VisitNotifications);
+ strcpy(tDest, "/VisitNotifications");
+ mi.pszName = LPGEN("Visit notifications");
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_EVENT_URL);
+ Menu_AddProtoMenuItem(&mi);
+
// Services...
mi.pszName = LPGEN("Services...");
strcpy(tDest, "/Services");
mi.flags = CMIF_CHILDPOPUP | (this->isOnline() ? 0 : CMIF_GRAYED);
- mi.icolibItem = NULL;
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_OTHER_HELP);
m_hMenuServicesRoot = Menu_AddProtoMenuItem(&mi);
CreateProtoService("/RefreshBuddyList",&FacebookProto::RefreshBuddyList);
@@ -239,7 +245,7 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam)
mi.flags = CMIF_ROOTHANDLE;
mi.pszName = LPGEN("Refresh Buddy List");
mi.pszPopupName = LPGEN("Services");
- mi.icolibItem = NULL;
+ mi.icolibItem = GetIconHandle("friendship");
mi.hParentMenu = m_hMenuServicesRoot;
Menu_AddProtoMenuItem(&mi);
@@ -247,7 +253,7 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam)
strcpy(tDest,"/CheckFriendRequests");
mi.flags = CMIF_ROOTHANDLE;
mi.pszName = LPGEN("Check Friends Requests");
- mi.icolibItem = NULL;
+ mi.icolibItem = LoadSkinnedIconHandle(SKINICON_AUTH_REQUEST);
mi.hParentMenu = m_hMenuServicesRoot;
Menu_AddProtoMenuItem(&mi);
@@ -256,7 +262,7 @@ int FacebookProto::OnBuildStatusMenu(WPARAM wParam,LPARAM lParam)
mi.flags = CMIF_ROOTHANDLE;
mi.pszName = LPGEN("Check Newsfeeds");
mi.pszPopupName = LPGEN("Services");
- mi.icolibItem = NULL;
+ mi.icolibItem = GetIconHandle("newsfeed");
mi.hParentMenu = m_hMenuServicesRoot;
Menu_AddProtoMenuItem(&mi);