summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw
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/Clist_mw
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/Clist_mw')
-rw-r--r--plugins/Clist_mw/keyboard.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/Clist_mw/keyboard.cpp b/plugins/Clist_mw/keyboard.cpp
index 361a4f56f5..d099fab37c 100644
--- a/plugins/Clist_mw/keyboard.cpp
+++ b/plugins/Clist_mw/keyboard.cpp
@@ -39,26 +39,23 @@ INT_PTR hkRestoreStatus(WPARAM wParam,LPARAM lParam)
int InitSkinHotKeys(void)
{
- HOTKEYDESC shk = {0};
-
CreateServiceFunction("CLIST/HK/CloseMiranda",hkCloseMiranda);
CreateServiceFunction("CLIST/HK/RestoreStatus",hkRestoreStatus);
+ HOTKEYDESC shk = {0};
shk.cbSize = sizeof(shk);
- shk.pszDescription = "Close Miranda";
+ shk.pszDescription = LPGEN("Close Miranda");
shk.pszName = "CloseMiranda";
shk.pszSection = "Main";
shk.pszService = "CLIST/HK/CloseMiranda";
- shk.DefHotKey = 0;
- CallService(MS_HOTKEY_REGISTER,0,(LPARAM)&shk);
+ Hotkey_Register(&shk);
- shk.pszDescription = "Restore last status";
+ shk.pszDescription = LPGEN("Restore last status");
shk.pszName = "RestoreLastStatus";
shk.pszSection = "Status";
shk.pszService = "CLIST/HK/RestoreStatus";
- shk.DefHotKey = 0;
- CallService(MS_HOTKEY_REGISTER,0,(LPARAM)&shk);
+ Hotkey_Register(&shk);
return 0;
}