diff options
author | George Hazan <ghazan@miranda.im> | 2018-04-06 20:05:59 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-04-06 20:05:59 +0300 |
commit | 423fb81b36428c3a22f6be94dd8ba2e7161b9179 (patch) | |
tree | 2878a33c846a810a12c9f5893c7fb39788cfe0f0 /plugins | |
parent | 4f36c88d3f9064f20cab2a516946798cda159400 (diff) |
CLIST_INTERFACE::pfnIsHiddenMode => Clist_IsHiddenMode
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Clist_modern/src/modern_clc.cpp | 4 | ||||
-rw-r--r-- | plugins/Clist_modern/src/modern_clcitems.cpp | 4 | ||||
-rw-r--r-- | plugins/Clist_nicer/src/clc.cpp | 4 |
3 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 5f8eaafd69..abce896da1 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -1331,7 +1331,7 @@ static LRESULT clcOnIntmIconChanged(ClcData *dat, HWND hwnd, UINT, WPARAM wParam DWORD style = GetWindowLongPtr(hwnd, GWL_STYLE);
bool isVisiblebyFilter = (((style & CLS_SHOWHIDDEN) && nHiddenStatus != -1) || !nHiddenStatus);
- bool ifVisibleByClui = !pcli->pfnIsHiddenMode(dat, status);
+ bool ifVisibleByClui = !Clist_IsHiddenMode(dat, status);
bool isVisible = (g_CluiData.bFilterEffective & CLVM_FILTER_STATUS) ? TRUE : ifVisibleByClui;
bool isIconChanged = Clist_GetContactIcon(wParam) != LOWORD(lParam);
@@ -1373,7 +1373,7 @@ static LRESULT clcOnIntmIconChanged(ClcData *dat, HWND hwnd, UINT, WPARAM wParam }
else if (contact) {
contact->iImage = lParam;
- if (!pcli->pfnIsHiddenMode(dat, status))
+ if (!Clist_IsHiddenMode(dat, status))
contact->flags |= CONTACTF_ONLINE;
else
contact->flags &= ~CONTACTF_ONLINE;
diff --git a/plugins/Clist_modern/src/modern_clcitems.cpp b/plugins/Clist_modern/src/modern_clcitems.cpp index e7697c0a0b..cbf89f1cfe 100644 --- a/plugins/Clist_modern/src/modern_clcitems.cpp +++ b/plugins/Clist_modern/src/modern_clcitems.cpp @@ -74,7 +74,7 @@ void AddSubcontacts(ClcData *dat, ClcContact *cont, BOOL showOfflineHereGroup) Cache_GetText(dat, &p);
char *szProto = pdnce->szProto;
- if (szProto != nullptr && !pcli->pfnIsHiddenMode(dat, wStatus))
+ if (szProto != nullptr && !Clist_IsHiddenMode(dat, wStatus))
p.flags |= CONTACTF_ONLINE;
int apparentMode = szProto != nullptr ? pdnce->ApparentMode : 0;
if (apparentMode == ID_STATUS_OFFLINE) p.flags |= CONTACTF_INVISTO;
@@ -131,7 +131,7 @@ static void _LoadDataToContact(ClcContact *cont, ClcCacheEntry *pdnce, ClcGroup cont->hContact = hContact;
cont->proto = szProto;
- if (szProto != nullptr && !pcli->pfnIsHiddenMode(dat, pdnce->m_iStatus))
+ if (szProto != nullptr && !Clist_IsHiddenMode(dat, pdnce->m_iStatus))
cont->flags |= CONTACTF_ONLINE;
WORD apparentMode = szProto != nullptr ? pdnce->ApparentMode : 0;
diff --git a/plugins/Clist_nicer/src/clc.cpp b/plugins/Clist_nicer/src/clc.cpp index 9683a875c1..89928963a2 100644 --- a/plugins/Clist_nicer/src/clc.cpp +++ b/plugins/Clist_nicer/src/clc.cpp @@ -319,7 +319,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L status = db_get_w(hContact, szProto, "Status", ID_STATUS_OFFLINE);
int shouldShow = (GetWindowLongPtr(hwnd, GWL_STYLE) & CLS_SHOWHIDDEN ||
- !CLVM_GetContactHiddenStatus(hContact, szProto, dat)) && ((cfg::dat.bFilterEffective ? TRUE : !pcli->pfnIsHiddenMode(dat, status)) ||
+ !CLVM_GetContactHiddenStatus(hContact, szProto, dat)) && ((cfg::dat.bFilterEffective ? TRUE : !Clist_IsHiddenMode(dat, status)) ||
Clist_GetContactIcon(hContact) != lParam); // XXX CLVM changed - this means an offline msg is flashing, so the contact should be shown
if (!Clist_FindItem(hwnd, dat, hContact, &contact, &group, nullptr)) {
@@ -349,7 +349,7 @@ LRESULT CALLBACK ContactListControlWndProc(HWND hwnd, UINT msg, WPARAM wParam, L }
else {
contact->iImage = (WORD)lParam;
- if (!pcli->pfnIsHiddenMode(dat, status))
+ if (!Clist_IsHiddenMode(dat, status))
contact->flags |= CONTACTF_ONLINE;
else
contact->flags &= ~CONTACTF_ONLINE;
|