diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-12 06:20:51 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-12 06:20:51 +0000 |
commit | 6c2ab603d2456c41ec977fb3fc18666439a10785 (patch) | |
tree | 75c6284dd78895e4cc7ec6b7db198e06ebdcfaa1 /plugins/TopToolBar/InternalButtons.cpp | |
parent | 987abc0e1d9f8f32d5565701743b40d6c0326e9e (diff) |
- fix for the button arrange procedure;
- fix for the icons' enabling/disabling;
- code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@913 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/InternalButtons.cpp')
-rw-r--r-- | plugins/TopToolBar/InternalButtons.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/TopToolBar/InternalButtons.cpp b/plugins/TopToolBar/InternalButtons.cpp index 6f758142c7..7fcdc1cef8 100644 --- a/plugins/TopToolBar/InternalButtons.cpp +++ b/plugins/TopToolBar/InternalButtons.cpp @@ -65,15 +65,15 @@ INT_PTR TTBInternalMainMenuButt(WPARAM wParam, LPARAM lParam) INT_PTR TTBInternalGroupShowHide(WPARAM wParam, LPARAM lParam)
{
int newVal = !(GetWindowLongPtr(hwndContactTree, GWL_STYLE)&CLS_USEGROUPS);
- DBWriteContactSettingByte(NULL, "CList", "UseGroups", (BYTE)newVal);
+ db_set_b(NULL, "CList", "UseGroups", (BYTE)newVal);
SendMessage(hwndContactTree, CLM_SETUSEGROUPS, newVal, 0);
return 0;
}
INT_PTR TTBInternalSoundsOnOff(WPARAM wParam, LPARAM lParam)
{
- int newVal = !(DBGetContactSettingByte(NULL, "Skin", "UseSound", 1));
- DBWriteContactSettingByte(NULL, "Skin", "UseSound", (BYTE)newVal);
+ int newVal = !(db_get_b(NULL, "Skin", "UseSound", 1));
+ db_set_b(NULL, "Skin", "UseSound", (BYTE)newVal);
return 0;
}
|