summaryrefslogtreecommitdiff
path: root/protocols/FacebookRM/src/proto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-09-03 18:47:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-09-03 18:47:56 +0300
commit510da32865c8ed78f9ffb3e57e23e2cfea132b0d (patch)
tree28a3841e6a40036d7dafbbaef76b4d8c206f3f49 /protocols/FacebookRM/src/proto.cpp
parent13e66cd09f0dd2c32a859abdc408dad7720b2777 (diff)
Popups:
- fixes #1564 (Move popups fonts/colors settings into submenu SkypeWeb VKontakte) - more code cleaning
Diffstat (limited to 'protocols/FacebookRM/src/proto.cpp')
-rw-r--r--protocols/FacebookRM/src/proto.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/protocols/FacebookRM/src/proto.cpp b/protocols/FacebookRM/src/proto.cpp
index dd24b8af02..1f265f2d0c 100644
--- a/protocols/FacebookRM/src/proto.cpp
+++ b/protocols/FacebookRM/src/proto.cpp
@@ -917,7 +917,8 @@ void FacebookProto::InitPopups()
char name[256];
wchar_t desc[256];
- POPUPCLASS ppc = { sizeof(ppc) };
+ POPUPCLASS ppc = {};
+ ppc.cbSize = sizeof(ppc);
ppc.flags = PCF_UNICODE;
ppc.PluginWindowProc = PopupDlgProc;
ppc.lParam = APF_RETURN_HWND;
@@ -930,27 +931,22 @@ void FacebookProto::InitPopups()
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("facebook"));
ppc.colorBack = RGB(191, 0, 0); // red
ppc.colorText = RGB(255, 255, 255); // white
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
// Newsfeeds
mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Wall posts"));
mir_snprintf(name, "%s_%s", m_szModuleName, "Newsfeed");
- ppc.pszName = name;
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("newsfeed"));
ppc.colorBack = RGB(255, 255, 255); // white
ppc.colorText = RGB(0, 0, 0); // black
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
// Notifications
mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Notifications"));
mir_snprintf(name, "%s_%s", m_szModuleName, "Notification");
- ppc.pszName = name;
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("notification"));
ppc.colorBack = RGB(59, 89, 152); // Facebook's blue
ppc.colorText = RGB(255, 255, 255); // white
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
// Others
@@ -959,7 +955,6 @@ void FacebookProto::InitPopups()
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("facebook"));
ppc.colorBack = RGB(255, 255, 255); // white
ppc.colorText = RGB(0, 0, 0); // black
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
// Friendship changes
@@ -968,7 +963,6 @@ void FacebookProto::InitPopups()
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("friendship"));
ppc.colorBack = RGB(47, 71, 122); // Facebook's darker blue
ppc.colorText = RGB(255, 255, 255); // white
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
// Ticker
@@ -977,7 +971,6 @@ void FacebookProto::InitPopups()
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("newsfeed"));
ppc.colorBack = RGB(255, 255, 255); // white
ppc.colorText = RGB(0, 0, 0); // black
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
// On this day (memories)
@@ -986,7 +979,6 @@ void FacebookProto::InitPopups()
ppc.hIcon = IcoLib_GetIconByHandle(GetIconHandle("memories"));
ppc.colorBack = RGB(255, 255, 255); // white
ppc.colorText = RGB(0, 0, 0); // black
- ppc.iSeconds = 0;
popupClasses.push_back(Popup_RegisterClass(&ppc));
}