summaryrefslogtreecommitdiff
path: root/protocols/MSN/src
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/MSN/src
parent13e66cd09f0dd2c32a859abdc408dad7720b2777 (diff)
Popups:
- fixes #1564 (Move popups fonts/colors settings into submenu SkypeWeb VKontakte) - more code cleaning
Diffstat (limited to 'protocols/MSN/src')
-rw-r--r--protocols/MSN/src/msn_misc.cpp13
1 files changed, 6 insertions, 7 deletions
diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp
index 9f95bb34f8..fbb46bdd6c 100644
--- a/protocols/MSN/src/msn_misc.cpp
+++ b/protocols/MSN/src/msn_misc.cpp
@@ -801,27 +801,26 @@ void CMsnProto::InitPopups(void)
ppc.pszName = name;
ppc.pszDescription.w = desc;
+ mir_snprintf(name, "%s_%s", m_szModuleName, "Hotmail");
+ mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Hotmail"));
ppc.colorBack = RGB(173, 206, 247);
ppc.colorText = GetSysColor(COLOR_WINDOWTEXT);
ppc.iSeconds = 3;
- mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Hotmail"));
- mir_snprintf(name, "%s_%s", m_szModuleName, "Hotmail");
hPopupHotmail = Popup_RegisterClass(&ppc);
+ mir_snprintf(name, "%s_%s", m_szModuleName, "Notify");
+ mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Notifications"));
ppc.colorBack = RGB(173, 206, 247);
ppc.colorText = GetSysColor(COLOR_WINDOWTEXT);
ppc.iSeconds = 3;
- mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Notifications"));
- mir_snprintf(name, "%s_%s", m_szModuleName, "Notify");
hPopupNotify = Popup_RegisterClass(&ppc);
+ mir_snprintf(name, "%s_%s", m_szModuleName, "Error");
+ mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Errors"));
ppc.hIcon = (HICON)LoadImage(nullptr, IDI_WARNING, IMAGE_ICON, 0, 0, LR_SHARED);
ppc.colorBack = RGB(191, 0, 0); //Red
ppc.colorText = RGB(255, 245, 225); //Yellow
ppc.iSeconds = 60;
-
- mir_snwprintf(desc, L"%s/%s", m_tszUserName, TranslateT("Errors"));
- mir_snprintf(name, "%s_%s", m_szModuleName, "Error");
hPopupError = Popup_RegisterClass(&ppc);
}