summaryrefslogtreecommitdiff
path: root/plugins/Popup/src/opt_contacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 15:57:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 15:57:47 +0300
commita6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 (patch)
tree86960597fbdc0025b12c4e87b8b536dd3d9910fb /plugins/Popup/src/opt_contacts.cpp
parent28b81bbed5d8db354349fd787c3db4123e55d423 (diff)
hContact, MODULENAME -> g_plugin
Diffstat (limited to 'plugins/Popup/src/opt_contacts.cpp')
-rw-r--r--plugins/Popup/src/opt_contacts.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Popup/src/opt_contacts.cpp b/plugins/Popup/src/opt_contacts.cpp
index cfca450f13..af65fe46f5 100644
--- a/plugins/Popup/src/opt_contacts.cpp
+++ b/plugins/Popup/src/opt_contacts.cpp
@@ -32,7 +32,7 @@ static void sttSetAllContactIcons(HWND hwndList)
{
for (auto &hContact : Contacts()) {
HANDLE hItem = (HANDLE)SendMessage(hwndList, CLM_FINDCONTACT, hContact, 0);
- DWORD dwMode = db_get_b(hContact, MODULENAME, "ShowMode", 0);
+ DWORD dwMode = g_plugin.getByte(hContact, "ShowMode", 0);
for (int i = 0; i < 4 /*_countof(sttIcons)*/; ++i)
// hIml element [0] = SKINICON_OTHER_SMALLDOT
// hIml element [1..5] = IcoLib_GetIcon(....) ~ old sttIcons
@@ -103,7 +103,7 @@ INT_PTR CALLBACK DlgProcContactOpts(HWND hwnd, UINT msg, WPARAM, LPARAM lParam)
HANDLE hItem = (HANDLE)SendMessage(hwndList, CLM_FINDCONTACT, hContact, 0);
for (int i = 0; i < 4 /*_countof(sttIcons)*/; ++i) {
if (SendMessage(hwndList, CLM_GETEXTRAIMAGE, (WPARAM)hItem, MAKELPARAM(i, 0))) {
- db_set_b(hContact, MODULENAME, "ShowMode", i);
+ g_plugin.setByte(hContact, "ShowMode", i);
break;
}
}