From 695277eb06da17fed42782c43dc11f1e55653600 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 23 Jul 2023 21:53:39 +0300 Subject: compilation fix --- plugins/Clist_blind/src/clc.cpp | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'plugins') diff --git a/plugins/Clist_blind/src/clc.cpp b/plugins/Clist_blind/src/clc.cpp index dbdc1fec5a..ffb58bc133 100644 --- a/plugins/Clist_blind/src/clc.cpp +++ b/plugins/Clist_blind/src/clc.cpp @@ -133,7 +133,7 @@ static void RebuildEntireListInternal(HWND hwnd, ClcData *tmp_dat, bool call_ori { CMStringW wszText(template_group); wszText.Replace(L"%name%", item->szText); - wszText.Replace(L"%mode%", item->group->expanded ? TranslateT("Expanded") : TranslateT("Collapsed")); + wszText.Replace(L"%mode%", item->group->bExpanded ? TranslateT("Expanded") : TranslateT("Collapsed")); wchar_t *szCounts = Clist_GetGroupCountsText(dat, item); wchar_t count[128]; @@ -178,7 +178,7 @@ static void RebuildEntireListInternal(HWND hwnd, ClcData *tmp_dat, bool call_ori lvi.lParam = LPARAM(item); ListView_InsertItem(dat->hwnd_list, &lvi); - if (item->type == CLCIT_GROUP && item->group->expanded) { + if (item->type == CLCIT_GROUP && item->group->bExpanded) { group = item->group; level++; group->scanIndex = 0; @@ -319,9 +319,8 @@ static void RebuildEntireList(HWND hwnd, ClcData *dat) RebuildEntireListInternal(hwnd, dat, true); } -static void SetGroupExpand(HWND hwnd, ClcData *dat, ClcGroup *group, int newState) +static void OnGroupExpanded(ClcData *dat, ClcGroup*) { - coreCli.pfnSetGroupExpand(hwnd, dat, group, newState); dat->bNeedsRebuild = true; } @@ -358,7 +357,7 @@ void InitClc() g_clistApi.pfnContactListWndProc = ContactListWndProc; g_clistApi.pfnContactListControlWndProc = ContactListControlWndProc; g_clistApi.pfnRebuildEntireList = RebuildEntireList; - g_clistApi.pfnSetGroupExpand = SetGroupExpand; + g_clistApi.pfnOnGroupExpanded = OnGroupExpanded; g_clistApi.pfnRecalcScrollBar = RecalcScrollBar; g_clistApi.pfnScrollTo = ScrollTo; g_clistApi.pfnLoadClcOptions = LoadClcOptions; -- cgit v1.2.3