summaryrefslogtreecommitdiff
path: root/src/modules/clist
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2012-06-17 16:29:45 +0000
committerKirill Volinsky <mataes2007@gmail.com>2012-06-17 16:29:45 +0000
commit2ee379c74131e1df6ee7c637d0b06102bae98673 (patch)
tree226eae488b2802960ced06c14317bd0c88b34dd3 /src/modules/clist
parent2df859e61f17e64764c988df9db23ef8140ebf90 (diff)
cosmetic settings fix
git-svn-id: http://svn.miranda-ng.org/main/trunk@464 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/clist')
-rw-r--r--src/modules/clist/keyboard.cpp41
1 files changed, 21 insertions, 20 deletions
diff --git a/src/modules/clist/keyboard.cpp b/src/modules/clist/keyboard.cpp
index cb8a428f22..2f7345ff5b 100644
--- a/src/modules/clist/keyboard.cpp
+++ b/src/modules/clist/keyboard.cpp
@@ -63,14 +63,14 @@ static INT_PTR hkCloseMiranda(WPARAM wParam, LPARAM lParam)
INT_PTR hkRestoreStatus(WPARAM wParam, LPARAM lParam)
{
int nStatus = DBGetContactSettingWord(NULL, "CList", "Status", ID_STATUS_OFFLINE);
- CallService(MS_CLIST_SETSTATUSMODE, nStatus, 0);
+ CallService(MS_CLIST_SETSTATUSMODE, nStatus, 0);
return 0;
}
static INT_PTR hkAllOffline(WPARAM, LPARAM)
{
- CallService(MS_CLIST_SETSTATUSMODE, ID_STATUS_OFFLINE, 0);
- return 0;
+ CallService(MS_CLIST_SETSTATUSMODE, ID_STATUS_OFFLINE, 0);
+ return 0;
}
*/
int InitClistHotKeys(void)
@@ -84,18 +84,19 @@ int InitClistHotKeys(void)
// CreateServiceFunction("CLIST/HK/RestoreStatus", hkRestoreStatus);
// CreateServiceFunction("CLIST/HK/AllOffline", hkAllOffline);
- shk.cbSize=sizeof(shk);
- shk.pszDescription="Show Hide Contact List";
- shk.pszName="ShowHide";
- shk.pszSection="Main";
- shk.pszService="CLIST/HK/SHOWHIDE";
+ shk.cbSize = sizeof(shk);
+ shk.dwFlags = HKD_TCHAR;
+ shk.ptszDescription = _T("Show Hide Contact List");
+ shk.pszName = "ShowHide";
+ shk.ptszSection = _T("Main");
+ shk.pszService = "CLIST/HK/SHOWHIDE";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'A');
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- shk.pszDescription="Read Message";
- shk.pszName="ReadMessage";
- shk.pszSection="Main";
- shk.pszService="CLIST/HK/Read";
+ shk.ptszDescription = _T("Read Message");
+ shk.pszName = "ReadMessage";
+ shk.ptszSection = _T("Main");
+ shk.pszService = "CLIST/HK/Read";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'I');
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
/*
@@ -106,24 +107,24 @@ int InitClistHotKeys(void)
shk.DefHotKey=846;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
*/
- shk.pszDescription = "Open Options Page";
+ shk.ptszDescription = _T("Open Options Page");
shk.pszName = "ShowOptions";
- shk.pszSection = "Main";
+ shk.ptszSection = _T("Main");
shk.pszService = "CLIST/HK/Opts";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'O') | HKF_MIRANDA_LOCAL;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- shk.pszDescription = "Open Logging Options";
+ shk.ptszDescription = _T("Open Logging Options");
shk.pszName = "ShowLogOptions";
- shk.pszSection = "Main";
+ shk.ptszSection = _T("Main");
shk.pszService = "Netlib/Log/Win";
shk.DefHotKey = 0;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);
- shk.pszDescription="Open Find User Dialog";
- shk.pszName="FindUsers";
- shk.pszSection="Main";
- shk.pszService="FindAdd/FindAddCommand";
+ shk.ptszDescription = _T("Open Find User Dialog");
+ shk.pszName = "FindUsers";
+ shk.ptszSection = _T("Main");
+ shk.pszService = "FindAdd/FindAddCommand";
shk.DefHotKey = HOTKEYCODE(HOTKEYF_CONTROL|HOTKEYF_SHIFT, 'F') | HKF_MIRANDA_LOCAL;
CallService(MS_HOTKEY_REGISTER, 0, (LPARAM)&shk);