From c5c5972135f392bd2ab5bacc6ce476e3aa267ca3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 27 Mar 2019 18:53:07 +0300 Subject: Clist events: - no need to save 4 bytes each time we wanna declare protocol-wide events; - all event adding code is forced to be executed in the main thread; - also fixes #1904 (ICQ: mail notification bug); - now we can use any event ids for global events. --- include/m_clist.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'include') diff --git a/include/m_clist.h b/include/m_clist.h index 116ddfa931..2739ae2a05 100644 --- a/include/m_clist.h +++ b/include/m_clist.h @@ -247,10 +247,8 @@ struct CLISTEVENT MCONTACT hContact; // handle to the contact to put the icon by DWORD flags; // ...of course HICON hIcon; // icon to flash - union { - MEVENT hDbEvent; // caller defined but should be unique for hContact - const char *lpszProtocol; - }; + MEVENT hDbEvent; // caller defined but should be unique for hContact + const char *moduleName; // for events with CLEF_PROTOCOLGLOBAL in flags LPARAM lParam; // caller defined const char *pszService; // name of the service to call on activation MAllCStrings szTooltip; // short description of the event to display as a tooltip on the system tray @@ -263,7 +261,7 @@ struct CLISTEVENT #define CLEF_UNICODE 4 // set pszTooltip as unicode #define CLEF_PROTOCOLGLOBAL 8 // set event globally for protocol, hContact has to be NULL, - // lpszProtocol the protocol ID name to be set + // moduleName the protocol ID name to be set ///////////////////////////////////////////////////////////////////////////////////////// // gets the image list with all the useful icons in it -- cgit v1.2.3