From 510da32865c8ed78f9ffb3e57e23e2cfea132b0d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 3 Sep 2018 18:47:56 +0300 Subject: Popups: - fixes #1564 (Move popups fonts/colors settings into submenu SkypeWeb VKontakte) - more code cleaning --- protocols/Gadu-Gadu/src/popups.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'protocols/Gadu-Gadu/src') diff --git a/protocols/Gadu-Gadu/src/popups.cpp b/protocols/Gadu-Gadu/src/popups.cpp index ecce63ae83..dd9c32d105 100644 --- a/protocols/Gadu-Gadu/src/popups.cpp +++ b/protocols/Gadu-Gadu/src/popups.cpp @@ -82,21 +82,21 @@ void GaduProto::initpopups() puc.pszName = szName; puc.pszDescription.w = szDescr; + mir_snprintf(szName, "%s_%s", m_szModuleName, "Notify"); + mir_snwprintf(szDescr, L"%s/%s", m_tszUserName, TranslateT("Notifications")); puc.colorBack = RGB(173, 206, 247); puc.colorText = GetSysColor(COLOR_WINDOWTEXT); puc.hIcon = CopyIcon(LoadIconEx("main", FALSE)); ReleaseIconEx("main", FALSE); puc.iSeconds = 4; - mir_snwprintf(szDescr, L"%s/%s", m_tszUserName, TranslateT("Notifications")); - mir_snprintf(szName, "%s_%s", m_szModuleName, "Notify"); hPopupNotify = Popup_RegisterClass(&puc); + mir_snprintf(szName, "%s_%s", m_szModuleName, "Error"); + mir_snwprintf(szDescr, L"%s/%s", m_tszUserName, TranslateT("Errors")); puc.colorBack = RGB(191, 0, 0); // Red puc.colorText = RGB(255, 245, 225); // Yellow puc.iSeconds = 60; puc.hIcon = (HICON)LoadImage(nullptr, IDI_WARNING, IMAGE_ICON, 0, 0, LR_SHARED); - mir_snwprintf(szDescr, L"%s/%s", m_tszUserName, TranslateT("Errors")); - mir_snprintf(szName, "%s_%s", m_szModuleName, "Error"); hPopupError = Popup_RegisterClass(&puc); } -- cgit v1.2.3