summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src/ttbopt.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-13 21:48:27 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-13 21:48:27 +0300
commit992b68811f8697ff3bf93ff10288d93022f58f53 (patch)
tree37f864d8aa442e2cd6316a2cdb57228ea92c2e5c /plugins/TopToolBar/src/ttbopt.cpp
parent8890041a964a9ebd1f421f0a27b56b35862cb5ab (diff)
TopToolBar -> g_plugin
Diffstat (limited to 'plugins/TopToolBar/src/ttbopt.cpp')
-rw-r--r--plugins/TopToolBar/src/ttbopt.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/TopToolBar/src/ttbopt.cpp b/plugins/TopToolBar/src/ttbopt.cpp
index 45642f84dc..6c9f76ef2a 100644
--- a/plugins/TopToolBar/src/ttbopt.cpp
+++ b/plugins/TopToolBar/src/ttbopt.cpp
@@ -379,13 +379,13 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR
g_ctrl->bAutoSize = (BYTE)IsDlgButtonChecked(hwndDlg, IDC_AUTORESIZE);
g_ctrl->bSingleLine = (BYTE)IsDlgButtonChecked(hwndDlg, IDC_SINGLELINE);
- db_set_dw(0, TTB_OPTDIR, "BUTTHEIGHT", g_ctrl->nButtonHeight);
- db_set_dw(0, TTB_OPTDIR, "BUTTWIDTH", g_ctrl->nButtonWidth);
- db_set_dw(0, TTB_OPTDIR, "BUTTGAP", g_ctrl->nButtonSpace);
+ g_plugin.setDword("BUTTHEIGHT", g_ctrl->nButtonHeight);
+ g_plugin.setDword("BUTTWIDTH", g_ctrl->nButtonWidth);
+ g_plugin.setDword("BUTTGAP", g_ctrl->nButtonSpace);
- db_set_b(0, TTB_OPTDIR, "UseFlatButton", g_ctrl->bFlatButtons);
- db_set_b(0, TTB_OPTDIR, "SingleLine", g_ctrl->bSingleLine);
- db_set_b(0, TTB_OPTDIR, "AutoSize", g_ctrl->bAutoSize);
+ g_plugin.setByte("UseFlatButton", g_ctrl->bFlatButtons);
+ g_plugin.setByte("SingleLine", g_ctrl->bSingleLine);
+ g_plugin.setByte("AutoSize", g_ctrl->bAutoSize);
SaveTree(hwndDlg);
RecreateWindows();