diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-28 21:28:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-28 21:28:50 +0000 |
commit | 190968e9803a32bd4e609176989564735098146c (patch) | |
tree | a3ab28871ffd27d84f401ebd9e4f79423c1823e8 /plugins/Clist_modern/modern_clistmenus.cpp | |
parent | 46c66c9252010602ba3194956e7710946066879b (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_clistmenus.cpp')
-rw-r--r-- | plugins/Clist_modern/modern_clistmenus.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/Clist_modern/modern_clistmenus.cpp b/plugins/Clist_modern/modern_clistmenus.cpp index 95e41c4d81..7212e675f0 100644 --- a/plugins/Clist_modern/modern_clistmenus.cpp +++ b/plugins/Clist_modern/modern_clistmenus.cpp @@ -79,7 +79,7 @@ static int FAV_OnContactMenuBuild(WPARAM wParam,LPARAM lParam) {
CLISTMENUITEM mi;
BOOL NeedFree=FALSE;
- BYTE bContactRate=ModernGetSettingByte((HANDLE)wParam, "CList", "Rate",0);
+ BYTE bContactRate=db_get_b((HANDLE)wParam, "CList", "Rate",0);
//if (hFavoriteContactMenu)
static TCHAR * FAVMENUROOTNAME =_T("&Contact rate");
@@ -171,7 +171,7 @@ static int FAV_OnContactMenuBuild(WPARAM wParam,LPARAM lParam) mi.hIcon=NULL;
mi.ptszName=_T("Show even if offline");
- mi.flags=CMIF_CHILDPOPUP|CMIF_TCHAR|(ModernGetSettingByte((HANDLE)wParam,"CList","noOffline",0)?CMIF_CHECKED:0);
+ mi.flags=CMIF_CHILDPOPUP|CMIF_TCHAR|(db_get_b((HANDLE)wParam,"CList","noOffline",0)?CMIF_CHECKED:0);
mi.pszService=CLUI_FAVTOGGLESHOWOFFLINE;
mi.popupPosition=i+100000000;
mi.position=-100000000;
@@ -188,7 +188,7 @@ INT_PTR FAV_SetRate(WPARAM hContact, LPARAM nRate) {
if (hContact)
{
- ModernWriteSettingByte((HANDLE)hContact, "CList", "Rate",(BYTE)nRate);
+ db_set_b((HANDLE)hContact, "CList", "Rate",(BYTE)nRate);
}
return 0;
}
@@ -197,8 +197,8 @@ INT_PTR FAV_ToggleShowOffline(WPARAM hContact,LPARAM lParam) {
if (hContact)
{
- ModernWriteSettingByte((HANDLE)hContact,"CList","noOffline",
- ModernGetSettingByte((HANDLE)hContact,"CList","noOffline",0)?0:1);
+ db_set_b((HANDLE)hContact,"CList","noOffline",
+ db_get_b((HANDLE)hContact,"CList","noOffline",0)?0:1);
}
return 0;
}
|