summaryrefslogtreecommitdiff
path: root/plugins/RecentContacts
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-19 16:10:58 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-19 16:10:58 +0000
commit394540126b181982d8b61d07a084ceeac8559ed1 (patch)
tree3950c99abcaeb77888271dd5994d96254f0492c6 /plugins/RecentContacts
parentfe557276119e48389b9a471d5a4ed5d232a2857d (diff)
- 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
Diffstat (limited to 'plugins/RecentContacts')
-rw-r--r--plugins/RecentContacts/RecentContacts.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/plugins/RecentContacts/RecentContacts.cpp b/plugins/RecentContacts/RecentContacts.cpp
index 3e43af0daa..8e9f4d8c07 100644
--- a/plugins/RecentContacts/RecentContacts.cpp
+++ b/plugins/RecentContacts/RecentContacts.cpp
@@ -609,17 +609,15 @@ int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
}
*/
- if (ServiceExists(MS_HOTKEY_REGISTER)) {
- // hotkeys
- HOTKEYDESC hotkey = {0};
- hotkey.cbSize = sizeof(hotkey);
- hotkey.pszName = msLastUC_ShowList;
- hotkey.pszDescription = LPGEN("Show Recent Contacts");
- hotkey.pszSection = "Contacts";
- hotkey.pszService = msLastUC_ShowList;
- hotkey.DefHotKey = MAKEWORD('R', HOTKEYF_CONTROL | HOTKEYF_SHIFT);
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hotkey);
- }
+ // hotkeys
+ HOTKEYDESC hk = {0};
+ hk.cbSize = sizeof(hk);
+ hk.pszName = msLastUC_ShowList;
+ hk.pszDescription = LPGEN("Show Recent Contacts");
+ hk.pszSection = "Contacts";
+ hk.pszService = msLastUC_ShowList;
+ hk.DefHotKey = MAKEWORD('R', HOTKEYF_CONTROL | HOTKEYF_SHIFT);
+ Hotkey_Register(&hk);
return 0;
}