From 41ee395da7530c17656bd06f84638ab8d9d3776d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 20 May 2018 23:36:07 +0300 Subject: options API unbound from hLangpack and switched to CMPlugin --- plugins/Popup/src/main.cpp | 12 ++++++------ plugins/Popup/src/opt_class.cpp | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/Popup/src') diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp index f71cc05144..616ef9834d 100644 --- a/plugins/Popup/src/main.cpp +++ b/plugins/Popup/src/main.cpp @@ -71,33 +71,33 @@ static int OptionsInitialize(WPARAM wParam, LPARAM) odp.szTab.a = LPGEN("General"); odp.pfnDlgProc = DlgProcPopupGeneral; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_POPUP_GENERAL); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); odp.szTab.a = LPGEN("Classes"); odp.pfnDlgProc = DlgProcOptsClasses; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_NOTIFICATIONS); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); odp.szTab.a = LPGEN("Actions"); odp.pfnDlgProc = DlgProcPopupActions; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_ACTIONS); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); odp.szTab.a = LPGEN("Contacts"); odp.pfnDlgProc = DlgProcContactOpts; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_CONTACTS); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); odp.szTab.a = LPGEN("Advanced"); odp.pfnDlgProc = DlgProcPopupAdvOpts; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_POPUP_ADVANCED); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); odp.szGroup.a = LPGEN("Skins"); odp.szTab.a = LPGEN(MODULNAME_PLU); odp.pfnDlgProc = DlgProcPopSkinsOpts; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_SKIN2); - Options_AddPage(wParam, &odp); + g_plugin.addOptions(wParam, &odp); return 0; } diff --git a/plugins/Popup/src/opt_class.cpp b/plugins/Popup/src/opt_class.cpp index 582fddbe55..415d9a2cdb 100644 --- a/plugins/Popup/src/opt_class.cpp +++ b/plugins/Popup/src/opt_class.cpp @@ -368,7 +368,7 @@ INT_PTR CALLBACK DlgProcOptsClasses(HWND hwnd, UINT msg, WPARAM wParam, LPARAM l break; case IDC_MORE: - Options_Open(L"Customize", L"Fonts and colors"); + g_plugin.openOptions(L"Customize", L"Fonts and colors"); break; case IDC_SOFFLINE: case IDC_SONLINE: case IDC_SAWAY: case IDC_SNA: case IDC_SOCCUPIED: -- cgit v1.2.3