summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ListeningTo')
-rw-r--r--plugins/ListeningTo/listeningto.cpp42
1 files changed, 20 insertions, 22 deletions
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();