diff options
author | George Hazan <ghazan@miranda.im> | 2017-03-17 13:39:30 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-03-17 13:39:30 +0300 |
commit | bc0b6bfb2734ce8355ddfb9b20461321c08a0b0c (patch) | |
tree | e3d8fdb4a5c1090d7efd21397679e2ed8803659e /src/mir_app | |
parent | 2444f74aeaa00db13dd0cdb44d694cad09620efa (diff) |
forgotten TCHAR removed
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/chat_clist.cpp | 4 | ||||
-rw-r--r-- | src/mir_app/src/clistevents.cpp | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/mir_app/src/chat_clist.cpp b/src/mir_app/src/chat_clist.cpp index 43b6c7791a..1c17da6fee 100644 --- a/src/mir_app/src/chat_clist.cpp +++ b/src/mir_app/src/chat_clist.cpp @@ -203,10 +203,10 @@ BOOL AddEvent(MCONTACT hContact, HICON hIcon, MEVENT hEvent, int type, wchar_t* CLISTEVENT cle = {};
cle.hContact = hContact;
cle.hDbEvent = hEvent;
- cle.flags = type | CLEF_TCHAR;
+ cle.flags = type | CLEF_UNICODE;
cle.hIcon = hIcon;
cle.pszService = "GChat/DblClickEvent";
- cle.ptszTooltip = TranslateW(szBuf);
+ cle.szTooltip.w = TranslateW(szBuf);
if (!ServiceExists(cle.pszService))
CreateServiceFunction(cle.pszService, &EventDoubleclicked);
diff --git a/src/mir_app/src/clistevents.cpp b/src/mir_app/src/clistevents.cpp index bcc85e9840..5b8b01f5b1 100644 --- a/src/mir_app/src/clistevents.cpp +++ b/src/mir_app/src/clistevents.cpp @@ -68,7 +68,7 @@ static char* GetEventProtocol(int idx) static void ShowOneEventInTray(int idx)
{
- cli.pfnTrayIconUpdateWithImageList((iconsOn || disableTrayFlash) ? g_cliEvents[idx].imlIconIndex : 0, g_cliEvents[idx].ptszTooltip, GetEventProtocol(idx));
+ cli.pfnTrayIconUpdateWithImageList((iconsOn || disableTrayFlash) ? g_cliEvents[idx].imlIconIndex : 0, g_cliEvents[idx].szTooltip.w, GetEventProtocol(idx));
}
static void ShowEventsInTray()
@@ -150,9 +150,9 @@ CListEvent* fnAddEvent(CLISTEVENT *cle) p->flashesDone = 12;
p->pszService = mir_strdup(g_cliEvents[i].pszService);
if (p->flags & CLEF_UNICODE)
- p->ptszTooltip = mir_wstrdup(p->ptszTooltip);
+ p->szTooltip.w = mir_wstrdup(p->szTooltip.w);
else
- p->ptszTooltip = mir_a2u(p->pszTooltip); //if no flag defined it handled as unicode
+ p->szTooltip.w = mir_a2u(p->szTooltip.a); //if no flag defined it handled as unicode
if (g_cliEvents.getCount() == 1) {
char *szProto;
if (cle->hContact == 0) {
@@ -165,7 +165,7 @@ CListEvent* fnAddEvent(CLISTEVENT *cle) iconsOn = 1;
flashTimerId = SetTimer(nullptr, 0, db_get_w(0, "CList", "IconFlashTime", 550), IconFlashTimer);
- cli.pfnTrayIconUpdateWithImageList(p->imlIconIndex, p->ptszTooltip, szProto);
+ cli.pfnTrayIconUpdateWithImageList(p->imlIconIndex, p->szTooltip.w, szProto);
}
cli.pfnChangeContactIcon(cle->hContact, p->imlIconIndex);
return p;
@@ -218,7 +218,7 @@ int fnRemoveEvent(MCONTACT hContact, MEVENT dbEvent) szProto = nullptr;
else
szProto = GetContactProto(g_cliEvents[0].hContact);
- cli.pfnTrayIconUpdateWithImageList(iconsOn ? g_cliEvents[0].imlIconIndex : 0, g_cliEvents[0].ptszTooltip, szProto);
+ cli.pfnTrayIconUpdateWithImageList(iconsOn ? g_cliEvents[0].imlIconIndex : 0, g_cliEvents[0].szTooltip.w, szProto);
}
return 0;
|