From 055d4460e17344248c7364afc5d19deeda39d644 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 1 Jan 2014 12:32:05 +0000 Subject: copyright update for year 2014 git-svn-id: http://svn.miranda-ng.org/main/trunk@7438 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clcmsgs.cpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clcmsgs.cpp') diff --git a/plugins/Clist_modern/src/modern_clcmsgs.cpp b/plugins/Clist_modern/src/modern_clcmsgs.cpp index d31016b09f..ebfb45bc7a 100644 --- a/plugins/Clist_modern/src/modern_clcmsgs.cpp +++ b/plugins/Clist_modern/src/modern_clcmsgs.cpp @@ -1,9 +1,10 @@ /* -Miranda IM: the free IM client for Microsoft* Windows* +Miranda NG: the free IM client for Microsoft* Windows* -Copyright 2000-2008 Miranda ICQ/IM project, -all portions of this codebase are copyrighted to the people +Copyright (c) 2012-14 Miranda NG project (http://miranda-ng.org), +Copyright (c) 2000-08 Miranda ICQ/IM project, +all portions of this codebase are copyrighted to the people listed in contributors.txt. This program is free software; you can redistribute it and/or @@ -31,7 +32,7 @@ LRESULT cli_ProcessExternalMessages(HWND hwnd,ClcData *dat,UINT msg,WPARAM wPara { ClcContact *contact; ClcGroup *group; - + switch(msg) { case CLM_DELETEITEM: pcli->pfnDeleteItemFromTree(hwnd, (HANDLE) wParam); @@ -95,10 +96,10 @@ LRESULT cli_ProcessExternalMessages(HWND hwnd,ClcData *dat,UINT msg,WPARAM wPara dat->fontModernInfo[FONTID_CONTACT_TIME].colour = lParam; break; case FONTID_OPENGROUPS: - dat->fontModernInfo[FONTID_CLOSEDGROUPS].colour = lParam; + dat->fontModernInfo[FONTID_CLOSEDGROUPS].colour = lParam; break; case FONTID_OPENGROUPCOUNTS: - dat->fontModernInfo[FONTID_CLOSEDGROUPCOUNTS].colour = lParam; + dat->fontModernInfo[FONTID_CLOSEDGROUPCOUNTS].colour = lParam; break; } return 0; @@ -194,21 +195,21 @@ LRESULT cli_ProcessExternalMessages(HWND hwnd,ClcData *dat,UINT msg,WPARAM wPara else { index = List_IndexOf((SortedList*)&group->cl,contact->subcontacts); mainindex = index; - index += contact->isSubcontact; - } - + index += contact->isSubcontact; + } + BYTE k = db_get_b(NULL,"CLC","MetaExpanding",SETTING_METAEXPANDING_DEFAULT); if (k) { for (int i=0; i < mainindex; i++) { ClcContact *tempCont = group->cl.items[i]; if (tempCont->type == CLCIT_CONTACT && tempCont->SubAllocated && tempCont->SubExpanded) - index += tempCont->SubAllocated; + index += tempCont->SubAllocated; } - } + } dat->selection = pcli->pfnGetRowsPriorTo(&dat->list, group, index); - pcli->pfnEnsureVisible(hwnd, dat, dat->selection, 0); + pcli->pfnEnsureVisible(hwnd, dat, dat->selection, 0); } return 0; -- cgit v1.2.3