From a27b07c35565ced7f690890dcba29518ae2e4928 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 6 Sep 2016 18:26:47 +0000 Subject: MS_CLIST_SYSTRAY_NOTIFY - more useless code removed git-svn-id: http://svn.miranda-ng.org/main/trunk@17268 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Yahoo/src/util.cpp | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) (limited to 'protocols/Yahoo') diff --git a/protocols/Yahoo/src/util.cpp b/protocols/Yahoo/src/util.cpp index 4e792b6162..656135fbb0 100644 --- a/protocols/Yahoo/src/util.cpp +++ b/protocols/Yahoo/src/util.cpp @@ -129,18 +129,9 @@ int CYahooProto::ShowPopup(const wchar_t* nickname, const wchar_t* msg, const ch int CYahooProto::ShowNotification(const wchar_t *title, const wchar_t *info, DWORD flags) { - if (ServiceExists(MS_CLIST_SYSTRAY_NOTIFY)) { - MIRANDASYSTRAYNOTIFY err; - err.szProto = m_szModuleName; - err.cbSize = sizeof(err); - err.tszInfoTitle = (wchar_t*)title; - err.tszInfo = (wchar_t*)info; - err.dwInfoFlags = flags | NIIF_INTERN_UNICODE; - err.uTimeout = 1000 * 3; - INT_PTR ret = CallService(MS_CLIST_SYSTRAY_NOTIFY, 0, (LPARAM)& err); - if (ret == 0) - return 1; - } + int ret = Clist_TrayNotifyW(m_szModuleName, title, info, flags, 1000 * 3); + if (ret == 0) + return 1; MessageBox(NULL, info, title, MB_OK | MB_ICONINFORMATION); return 0; -- cgit v1.2.3