From 3549466bfab1c6fdb20d8eb55fe0124f2c6704a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Tue, 5 Jul 2016 17:58:52 +0000 Subject: Facebook: Rework popup behavior and options page Now items in status menu/services are much more useful, as you can disable automatic loading of newsfeeds/notifications/on this day, but you can trigger it manually via status menu/services menu git-svn-id: http://svn.miranda-ng.org/main/trunk@17063 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/FacebookRM/src/proto.cpp | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'protocols/FacebookRM/src/proto.cpp') diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp index 4194e2a013..74e1a80d81 100644 --- a/protocols/FacebookRM/src/proto.cpp +++ b/protocols/FacebookRM/src/proto.cpp @@ -627,8 +627,7 @@ int FacebookProto::OnPreCreateEvent(WPARAM, LPARAM lParam) INT_PTR FacebookProto::CheckNewsfeeds(WPARAM, LPARAM) { if (!isOffline()) { - facy.client_notify(TranslateT("Loading newsfeeds...")); - facy.last_feeds_update_ = 0; + facy.client_notify(TranslateT("Loading wall posts...")); ForkThread(&FacebookProto::ProcessFeeds, NULL); } return 0; @@ -637,7 +636,7 @@ INT_PTR FacebookProto::CheckNewsfeeds(WPARAM, LPARAM) INT_PTR FacebookProto::CheckFriendRequests(WPARAM, LPARAM) { if (!isOffline()) { - facy.client_notify(TranslateT("Checking friend requests...")); + facy.client_notify(TranslateT("Loading friendship requests...")); ForkThread(&FacebookProto::ProcessFriendRequests, NULL); } return 0; @@ -646,7 +645,7 @@ INT_PTR FacebookProto::CheckFriendRequests(WPARAM, LPARAM) INT_PTR FacebookProto::CheckNotifications(WPARAM, LPARAM) { if (!isOffline()) { - facy.client_notify(TranslateT("Checking notifications...")); + facy.client_notify(TranslateT("Loading notifications...")); ForkThread(&FacebookProto::ProcessNotifications, NULL); } return 0; @@ -655,7 +654,7 @@ INT_PTR FacebookProto::CheckNotifications(WPARAM, LPARAM) INT_PTR FacebookProto::CheckOnThisDay(WPARAM, LPARAM) { if (!isOffline()) { - facy.client_notify(TranslateT("Checking what happened on this day...")); + facy.client_notify(TranslateT("Loading what happened on this day...")); ForkThread(&FacebookProto::ProcessOnThisDay, NULL); } return 0; @@ -994,7 +993,7 @@ void FacebookProto::InitPopups() char name[256]; // Client - mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("Client notifications")); + mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("Client errors")); mir_snprintf(name, "%s_%s", m_szModuleName, "Client"); ppc.ptszDescription = desc; ppc.pszName = name; @@ -1005,7 +1004,7 @@ void FacebookProto::InitPopups() popupClasses.push_back(Popup_RegisterClass(&ppc)); // Newsfeeds - mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("News feeds")); + mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("Wall posts")); mir_snprintf(name, "%s_%s", m_szModuleName, "Newsfeed"); ppc.ptszDescription = desc; ppc.pszName = name; @@ -1049,7 +1048,7 @@ void FacebookProto::InitPopups() popupClasses.push_back(Popup_RegisterClass(&ppc)); // Ticker - mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("Ticker feeds")); + mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("Real-time friends activity")); mir_snprintf(name, "%s_%s", m_szModuleName, "Ticker"); ppc.ptszDescription = desc; ppc.pszName = name; @@ -1060,7 +1059,7 @@ void FacebookProto::InitPopups() popupClasses.push_back(Popup_RegisterClass(&ppc)); // On this day - mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("On this day posts")); + mir_sntprintf(desc, _T("%s/%s"), m_tszUserName, TranslateT("\"On this day\" posts")); mir_snprintf(name, "%s_%s", m_szModuleName, "OnThisDay"); ppc.ptszDescription = desc; ppc.pszName = name; @@ -1110,7 +1109,7 @@ void FacebookProto::InitSounds() SkinAddNewSoundExT("OtherEvent", m_tszUserName, LPGENT("Other event")); SkinAddNewSoundExT("Friendship", m_tszUserName, LPGENT("Friendship event")); SkinAddNewSoundExT("Ticker", m_tszUserName, LPGENT("Ticker event")); - SkinAddNewSoundExT("OnThisDay", m_tszUserName, LPGENT("On this day event")); + SkinAddNewSoundExT("OnThisDay", m_tszUserName, LPGENT("\"On this day\" event")); } /** -- cgit v1.2.3