summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-30 17:30:39 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-30 17:30:39 +0300
commit6fad3235de6bec045fec19a7265e19e880ac84e2 (patch)
treeea375f721c2cc7e586142ccd0298b096a7a5b31f /plugins/Clist_modern
parent4aab3b6bc3d66ade09b25649d389b8aef358bfbd (diff)
Hotkeys: code cleaning
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_keyboard.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/Clist_modern/src/modern_keyboard.cpp b/plugins/Clist_modern/src/modern_keyboard.cpp
index 76d5451df9..b1a05f50df 100644
--- a/plugins/Clist_modern/src/modern_keyboard.cpp
+++ b/plugins/Clist_modern/src/modern_keyboard.cpp
@@ -45,25 +45,24 @@ int InitSkinHotKeys(void)
CreateServiceFunction("CLIST/HK/CloseMiranda", hkCloseMiranda);
CreateServiceFunction("CLIST/HK/RestoreStatus", hkRestoreStatus);
- HOTKEYDESC shk = { 0 };
- shk.cbSize = sizeof(shk);
+ HOTKEYDESC shk = {};
shk.dwFlags = HKD_UNICODE;
- shk.pwszDescription = LPGENW("Close Miranda");
+ shk.szSection.w = LPGENW("Main");
+ shk.szDescription.w = LPGENW("Close Miranda");
shk.pszName = "CloseMiranda";
- shk.pwszSection = LPGENW("Main");
shk.pszService = "CLIST/HK/CloseMiranda";
Hotkey_Register(&shk);
- shk.pwszDescription = LPGENW("Restore last status");
+ shk.szSection.w = LPGENW("Status");
+ shk.szDescription.w = LPGENW("Restore last status");
shk.pszName = "RestoreLastStatus";
- shk.pwszSection = LPGENW("Status");
shk.pszService = "CLIST/HK/RestoreStatus";
Hotkey_Register(&shk);
- shk.pwszDescription = LPGENW("Show/Hide offline users");
+ shk.szSection.w = LPGENW("Main");
+ shk.szDescription.w = LPGENW("Show/Hide offline users");
shk.pszName = "ShowHideOfflineUsers";
- shk.pwszSection = LPGENW("Main");
shk.pszService = MS_CLIST_TOGGLEHIDEOFFLINE;
Hotkey_Register(&shk);
return 0;