summaryrefslogtreecommitdiff
path: root/plugins/Sessions/Src
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/Sessions/Src
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/Sessions/Src')
-rw-r--r--plugins/Sessions/Src/Main.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index 496b279efd..a002af0f87 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -926,22 +926,22 @@ static int PluginInit(WPARAM wparam,LPARAM lparam)
hkd.pszName = "OpenSessionsManager";
hkd.ptszDescription = _T("Open Sessions Manager");
hkd.pszService = MS_SESSIONS_OPENMANAGER;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd);
+ Hotkey_Register(&hkd);
hkd.pszName = "RestoreLastSession";
hkd.ptszDescription = _T("Restore last Session");
hkd.pszService = MS_SESSIONS_RESTORELASTSESSION;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd);
+ Hotkey_Register(&hkd);
hkd.pszName = "SaveSession";
hkd.ptszDescription = _T("Save Session");
hkd.pszService = MS_SESSIONS_SAVEUSERSESSION;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd);
+ Hotkey_Register(&hkd);
hkd.pszName = "CloseSession";
hkd.ptszDescription = _T("Close Session");
hkd.pszService = MS_SESSIONS_CLOSESESSION;
- CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&hkd);
+ Hotkey_Register(&hkd);
hiChecked = LoadIcon(hinstance, MAKEINTRESOURCE(IDD_SESSION_CHECKED));
hiNotChecked = LoadIcon(hinstance, MAKEINTRESOURCE(IDD_SESSION_UNCHECKED));