summaryrefslogtreecommitdiff
path: root/plugins/TooltipNotify
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-11-29 22:06:16 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-11-29 22:06:16 +0000
commit0af868f41fbbac3d9808441a5115966f7f616c4c (patch)
treeeab8dfa16786d591c20d9cbd392a37c560975471 /plugins/TooltipNotify
parentaa96bc882fece220331d5cddace0540d36547f54 (diff)
Core: SkinAddNewSound removed and replaced by SkinAddNewSoundEx
git-svn-id: http://svn.miranda-ng.org/main/trunk@15788 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TooltipNotify')
-rw-r--r--plugins/TooltipNotify/src/TooltipNotify.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/TooltipNotify/src/TooltipNotify.cpp b/plugins/TooltipNotify/src/TooltipNotify.cpp
index cf5aa7d4dc..64752a8759 100644
--- a/plugins/TooltipNotify/src/TooltipNotify.cpp
+++ b/plugins/TooltipNotify/src/TooltipNotify.cpp
@@ -138,12 +138,12 @@ int CTooltipNotify::ModulesLoaded(WPARAM, LPARAM)
db_set_b(NULL, MODULENAME, "firstrun", 0);
}
- // register fonts
- SkinAddNewSound(SND_ONLINE, LPGEN("Tooltip Notify: Online"), "online.wav");
- SkinAddNewSound(SND_OFFLINE, LPGEN("Tooltip Notify: Offline"), "offline.wav");
- SkinAddNewSound(SND_OTHER, LPGEN("Tooltip Notify: Other"), "other.wav");
- SkinAddNewSound(SND_TYPING, LPGEN("Tooltip Notify: Typing"), "typing.wav");
+ SkinAddNewSoundEx(SND_ONLINE, LPGEN("Online"), LPGEN("Tooltip Notify"), "online.wav");
+ SkinAddNewSoundEx(SND_OFFLINE, LPGEN("Offline"), LPGEN("Tooltip Notify"), "offline.wav");
+ SkinAddNewSoundEx(SND_OTHER, LPGEN("Other"), LPGEN("Tooltip Notify"), "other.wav");
+ SkinAddNewSoundEx(SND_TYPING, LPGEN("Typing"), LPGEN("Tooltip Notify"), "typing.wav");
+ // register fonts
RegisterFonts();
return 0;
@@ -834,10 +834,8 @@ TCHAR* CTooltipNotify::MakeTooltipString(MCONTACT hContact, int iStatus, TCHAR *
const TCHAR *szFormatString = m_sOptions.bPrefixProto ? _T("%s%s%s") : _T("%.0s%.0s%s");
const TCHAR* szIs = TranslateT("is");
- const char* szProto =
- hContact == 0 ? "Proto" : (char*)::GetContactProto(hContact);
- const TCHAR* szContactName =
- (TCHAR *)::pcli->pfnGetContactDisplayName(hContact, 0);
+ const char* szProto = hContact == 0 ? "Proto" : ::GetContactProto(hContact);
+ const TCHAR* szContactName = ::pcli->pfnGetContactDisplayName(hContact, 0);
memset(szString, 0, iBufSize*sizeof(TCHAR));