summaryrefslogtreecommitdiff
path: root/plugins/Updater
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/Updater
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/Updater')
-rw-r--r--plugins/Updater/updater.cpp47
1 files changed, 22 insertions, 25 deletions
diff --git a/plugins/Updater/updater.cpp b/plugins/Updater/updater.cpp
index 531689e5d1..8d6d3f9b2a 100644
--- a/plugins/Updater/updater.cpp
+++ b/plugins/Updater/updater.cpp
@@ -154,31 +154,28 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam) {
CallService(MS_TRIGGER_REGISTERACTION, 0, (LPARAM)&ar);
}
- if (ServiceExists(MS_HOTKEY_REGISTER))
- {
- HOTKEYDESC shk = {0};
-
- shk.cbSize = sizeof(shk);
- shk.pszSection = LPGEN("Updater");
-
- shk.pszDescription = LPGEN("Check for Updates");
- shk.pszName = "Update";
- shk.pszService = MS_UPDATE_CHECKFORUPDATES;
-// shk.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'U') | HKF_MIRANDA_LOCAL;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
-
- shk.pszDescription = LPGEN("Restart");
- shk.pszName = "Restart";
- shk.pszService = MS_UPDATE_MENURESTART;
-// shk.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'R') | HKF_MIRANDA_LOCAL;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
-
- shk.pszDescription = LPGEN("Update and Exit");
- shk.pszName = "UpdateAndExit";
- shk.pszService = MS_UPDATE_MENUUPDATEANDEXIT;
- shk.DefHotKey = 0;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- }
+ // register hotkeys
+ HOTKEYDESC shk = {0};
+ shk.cbSize = sizeof(shk);
+ shk.pszSection = LPGEN("Updater");
+
+ shk.pszDescription = LPGEN("Check for Updates");
+ shk.pszName = "Update";
+ shk.pszService = MS_UPDATE_CHECKFORUPDATES;
+ shk.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'U') | HKF_MIRANDA_LOCAL;
+ Hotkey_Register(&shk);
+
+ shk.pszDescription = LPGEN("Restart");
+ shk.pszName = "Restart";
+ shk.pszService = MS_UPDATE_MENURESTART;
+ shk.DefHotKey = HOTKEYCODE(HOTKEYF_ALT, 'R') | HKF_MIRANDA_LOCAL;
+ Hotkey_Register(&shk);
+
+ shk.pszDescription = LPGEN("Update and Exit");
+ shk.pszName = "UpdateAndExit";
+ shk.pszService = MS_UPDATE_MENUUPDATEANDEXIT;
+ shk.DefHotKey = 0;
+ Hotkey_Register(&shk);
return 0;
}