From 190968e9803a32bd4e609176989564735098146c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 28 Jun 2012 21:28:50 +0000 Subject: database stubs moved to mir_core git-svn-id: http://svn.miranda-ng.org/main/trunk@676 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/modern_skinbutton.cpp | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/Clist_modern/modern_skinbutton.cpp') 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); -- cgit v1.2.3