From 394540126b181982d8b61d07a084ceeac8559ed1 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 19 Jun 2012 16:10:58 +0000 Subject: - dynamic hotkey translation - MS_HOTKEY_REGISTER replaced with Hotkey_Register git-svn-id: http://svn.miranda-ng.org/main/trunk@482 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/ListeningTo/listeningto.cpp | 42 ++++++++++++++++++------------------- 1 file changed, 20 insertions(+), 22 deletions(-) (limited to 'plugins/ListeningTo') diff --git a/plugins/ListeningTo/listeningto.cpp b/plugins/ListeningTo/listeningto.cpp index 68df0a7218..486a32b7a2 100644 --- a/plugins/ListeningTo/listeningto.cpp +++ b/plugins/ListeningTo/listeningto.cpp @@ -495,28 +495,26 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) } // Hotkeys support - if (ServiceExists(MS_HOTKEY_REGISTER)) - { - HOTKEYDESC hkd = {0}; - hkd.cbSize = sizeof(hkd); - hkd.pszSection = Translate("Listening to"); - - hkd.pszService = MS_LISTENINGTO_HOTKEYS_ENABLE; - hkd.pszName = "ListeningTo/EnableAll"; - hkd.pszDescription = Translate("Send to all protocols"); - CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd); - - hkd.pszService = MS_LISTENINGTO_HOTKEYS_DISABLE; - hkd.pszName = "ListeningTo/DisableAll"; - hkd.pszDescription = Translate("Don't send to any protocols"); - CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd); - - hkd.pszService = MS_LISTENINGTO_HOTKEYS_TOGGLE; - hkd.pszName = "ListeningTo/ToggleAll"; - hkd.pszDescription = Translate("Toggle send to all protocols"); - CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd); - } - + HOTKEYDESC hkd = {0}; + hkd.cbSize = sizeof(hkd); + hkd.pszSection = LPGEN("Listening to"); + + hkd.pszService = MS_LISTENINGTO_HOTKEYS_ENABLE; + hkd.pszName = "ListeningTo/EnableAll"; + hkd.pszDescription = LPGEN("Send to all protocols"); + Hotkey_Register(&hkd); + + hkd.pszService = MS_LISTENINGTO_HOTKEYS_DISABLE; + hkd.pszName = "ListeningTo/DisableAll"; + hkd.pszDescription = LPGEN("Don't send to any protocols"); + Hotkey_Register(&hkd); + + hkd.pszService = MS_LISTENINGTO_HOTKEYS_TOGGLE; + hkd.pszName = "ListeningTo/ToggleAll"; + hkd.pszDescription = LPGEN("Toggle send to all protocols"); + Hotkey_Register(&hkd); + + // SetListeningInfos(NULL); StartTimer(); -- cgit v1.2.3