summaryrefslogtreecommitdiff
path: root/plugins/Alarms
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-20 17:00:14 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-20 17:00:14 +0000
commit30ab6ceb71842f003f649b3d62b89af010cf40d1 (patch)
treeb1dae7a6d545cdf622a165ba4c576d3a41d71221 /plugins/Alarms
parent65461e7b4edb683cc09086fdaf49e0c2ef918bd4 (diff)
- direct call of MS_SKIN_ADDNEWSOUND replaced with Skin_AddSound() call;
- obsolete structure SKINSOUNDDESC removed - dynamically translated hot keys; - checked correct LPGEN'ing of the sounds creation; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@500 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Alarms')
-rw-r--r--plugins/Alarms/alarmlist.cpp9
-rw-r--r--plugins/Alarms/options.cpp2
2 files changed, 6 insertions, 5 deletions
diff --git a/plugins/Alarms/alarmlist.cpp b/plugins/Alarms/alarmlist.cpp
index 9bce8b546b..35ac1fa022 100644
--- a/plugins/Alarms/alarmlist.cpp
+++ b/plugins/Alarms/alarmlist.cpp
@@ -722,12 +722,13 @@ int IdleChanged(WPARAM wParam, LPARAM lParam)
return 0;
}
-void InitList() {
+void InitList()
+{
InitializeCriticalSection(&alarm_cs);
- SkinAddNewSoundEx("Triggered1", Translate("Alarms"), Translate("Alert 1"));
- SkinAddNewSoundEx("Triggered2", Translate("Alarms"), Translate("Alert 2"));
- SkinAddNewSoundEx("Triggered3", Translate("Alarms"), Translate("Alert 3"));
+ SkinAddNewSoundEx("Triggered1", LPGEN("Alarms"), LPGEN("Alert 1"));
+ SkinAddNewSoundEx("Triggered2", LPGEN("Alarms"), LPGEN("Alert 2"));
+ SkinAddNewSoundEx("Triggered3", LPGEN("Alarms"), LPGEN("Alert 3"));
// load last checked time
DBCONTACTGETSETTING dbcgs;
diff --git a/plugins/Alarms/options.cpp b/plugins/Alarms/options.cpp
index 685beea35b..654d39032d 100644
--- a/plugins/Alarms/options.cpp
+++ b/plugins/Alarms/options.cpp
@@ -323,7 +323,7 @@ static INT_PTR CALLBACK DlgProcAddEdit(HWND hwndDlg, UINT msg, WPARAM wParam, LP
case WM_COMMAND:
if ( HIWORD(wParam) == CBN_SELCHANGE ) {
- switch( LOWORD(wParam) ) {
+ switch( LOWORD(wParam)) {
case IDC_DAY:
case IDC_DAYNUM:
hw = GetDlgItem(hwndDlg, IDOK);