summaryrefslogtreecommitdiff
path: root/plugins/AssocMgr/src/utils.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/AssocMgr/src/utils.cpp')
-rw-r--r--plugins/AssocMgr/src/utils.cpp16
1 files changed, 3 insertions, 13 deletions
diff --git a/plugins/AssocMgr/src/utils.cpp b/plugins/AssocMgr/src/utils.cpp
index 494dd298c5..6028343440 100644
--- a/plugins/AssocMgr/src/utils.cpp
+++ b/plugins/AssocMgr/src/utils.cpp
@@ -139,26 +139,16 @@ static void MessageBoxIndirectFree(void *param)
void ShowInfoMessage(BYTE flags,const char *pszTitle,const char *pszTextFmt,...)
{
char szText[256]; /* max for systray */
- MSGBOXPARAMSA *mbp;
va_list va;
va_start(va,pszTextFmt);
mir_vsnprintf(szText,_countof(szText),pszTextFmt,va);
va_end(va);
- if(ServiceExists(MS_CLIST_SYSTRAY_NOTIFY)) {
- MIRANDASYSTRAYNOTIFY msn;
- msn.cbSize=sizeof(msn);
- msn.szProto=NULL;
- msn.szInfoTitle=(char*)pszTitle;
- msn.szInfo=(char*)szText;
- msn.uTimeout=30000; /* max timeout */
- msn.dwInfoFlags=flags;
- if (!CallServiceSync(MS_CLIST_SYSTRAY_NOTIFY,0,(LPARAM)&msn))
- return; /* success */
- }
+ if (!Clist_TrayNotifyA(NULL, pszTitle, szText, flags, 30000)) // success
+ return;
- mbp = (MSGBOXPARAMSA*)mir_calloc(sizeof(*mbp));
+ MSGBOXPARAMSA *mbp = (MSGBOXPARAMSA*)mir_calloc(sizeof(*mbp));
if(mbp == NULL)
return;