summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_skinbutton.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-28 21:28:50 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-28 21:28:50 +0000
commit190968e9803a32bd4e609176989564735098146c (patch)
treea3ab28871ffd27d84f401ebd9e4f79423c1823e8 /plugins/Clist_modern/modern_skinbutton.cpp
parent46c66c9252010602ba3194956e7710946066879b (diff)
database stubs moved to mir_core
git-svn-id: http://svn.miranda-ng.org/main/trunk@676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/modern_skinbutton.cpp')
-rw-r--r--plugins/Clist_modern/modern_skinbutton.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Clist_modern/modern_skinbutton.cpp b/plugins/Clist_modern/modern_skinbutton.cpp
index 0f74b5a9d2..3d5208f997 100644
--- a/plugins/Clist_modern/modern_skinbutton.cpp
+++ b/plugins/Clist_modern/modern_skinbutton.cpp
@@ -145,21 +145,21 @@ static int ModernSkinButtonPaintWorker(HWND hwnd, HDC whdc)
{
case 's':
{
- Value= ModernGetStringA(NULL,section,key);
+ Value= db_get_sa(NULL,section,key);
if (!Value)
Value=mir_strdup(bct->ValueTypeDef+1);
break;
}
case 'd':
- defval=ModernGetSettingDword(NULL,section,key,defval);
+ defval=db_get_dw(NULL,section,key,defval);
Value=mir_strdup(_ltoa(defval,buf,SIZEOF(buf)));
break;
case 'w':
- defval=ModernGetSettingWord(NULL,section,key,defval);
+ defval=db_get_w(NULL,section,key,defval);
Value=mir_strdup(_ltoa(defval,buf,SIZEOF(buf)));
break;
case 'b':
- defval=ModernGetSettingByte(NULL,section,key,defval);
+ defval=db_get_b(NULL,section,key,defval);
Value=mir_strdup(_ltoa(defval,buf,SIZEOF(buf)));
break;
}
@@ -245,29 +245,29 @@ static int ModernSkinButtonToggleDBValue(char * ValueDBSection,char *ValueTypeDe
{
case 's':
{
- Value= ModernGetStringA(NULL,section,key);
+ Value= db_get_sa(NULL,section,key);
if (!Value ||(Value && mir_bool_strcmpi(Value,val2)))
Value=mir_strdup(val);
else
Value=mir_strdup(val2);
- ModernWriteSettingString(NULL,section,key,Value);
+ db_set_s(NULL,section,key,Value);
mir_free_and_nill(Value);
break;
}
case 'd':
- curval=ModernGetSettingDword(NULL,section,key,l2);
+ curval=db_get_dw(NULL,section,key,l2);
curval=(curval==l2)?l1:l2;
- ModernWriteSettingDword(NULL,section,key,(DWORD)curval);
+ db_set_dw(NULL,section,key,(DWORD)curval);
break;
case 'w':
- curval=ModernGetSettingWord(NULL,section,key,l2);
+ curval=db_get_w(NULL,section,key,l2);
curval=(curval==l2)?l1:l2;
- ModernWriteSettingWord(NULL,section,key,(WORD)curval);
+ db_set_w(NULL,section,key,(WORD)curval);
break;
case 'b':
- curval=ModernGetSettingByte(NULL,section,key,l2);
+ curval=db_get_b(NULL,section,key,l2);
curval=(curval==l2)?l1:l2;
- ModernWriteSettingByte(NULL,section,key,(BYTE)curval);
+ db_set_b(NULL,section,key,(BYTE)curval);
break;
}
mir_free_and_nill(section);