summaryrefslogtreecommitdiff
path: root/plugins/Alarms
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2016-10-28 16:18:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2016-10-28 16:18:50 +0300
commitcf9de21af3073e29cb7b149fbd8427241de70729 (patch)
tree2a0b17f49d14d4a51bc942f15bf3747509f0c3cf /plugins/Alarms
parent3de431cc811a1fbf9cd0d520fe33b6163c73e919 (diff)
- old useless helpers removed from the Options module;
- mir_app functions introduced instead of them; - OPENOPTIONSDIALOG structure removed from m_options.h
Diffstat (limited to 'plugins/Alarms')
-rw-r--r--plugins/Alarms/src/frame.cpp7
-rw-r--r--plugins/Alarms/src/options.cpp4
2 files changed, 3 insertions, 8 deletions
diff --git a/plugins/Alarms/src/frame.cpp b/plugins/Alarms/src/frame.cpp
index 41824701af..6df1829178 100644
--- a/plugins/Alarms/src/frame.cpp
+++ b/plugins/Alarms/src/frame.cpp
@@ -383,12 +383,7 @@ LRESULT CALLBACK FrameWindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lPar
case WM_COMMAND:
switch(LOWORD(wParam)) {
case ID_REMINDERFRAMECONTEXT_OPTIONS:
- OPENOPTIONSDIALOG oop;
- oop.cbSize = sizeof(oop);
- oop.pszGroup = "Events";
- oop.pszPage = "Alarms";
- oop.pszTab = 0;
- Options_Open(&oop);
+ Options_Open(L"Events", L"Alarms");
break;
case ID_REMINDERFRAMECONTEXT_SUSPEND:
diff --git a/plugins/Alarms/src/options.cpp b/plugins/Alarms/src/options.cpp
index 1920adb518..f7cdda24b8 100644
--- a/plugins/Alarms/src/options.cpp
+++ b/plugins/Alarms/src/options.cpp
@@ -977,8 +977,8 @@ int OptInit(WPARAM wParam, LPARAM)
odp.position = -790000000;
odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT1);
- odp.pszTitle = LPGEN("Alarms");
- odp.pszGroup = LPGEN("Events");
+ odp.szTitle.a = LPGEN("Alarms");
+ odp.szGroup.a = LPGEN("Events");
odp.flags = ODPF_BOLDGROUPS;
odp.pfnDlgProc = DlgProcOpts;
Options_AddPage(wParam, &odp);