From bd612763172841f30f84c3db63c7aca9c8282cd2 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 1 Apr 2013 15:27:41 +0000 Subject: - Clist_modern: changed group in folders plugin (patch from Mataes) git-svn-id: http://svn.miranda-ng.org/main/trunk@4272 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_clc.cpp | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) (limited to 'plugins/Clist_modern/src/modern_clc.cpp') diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp index 88b725647b..fc2edc9c7a 100644 --- a/plugins/Clist_modern/src/modern_clc.cpp +++ b/plugins/Clist_modern/src/modern_clc.cpp @@ -55,7 +55,8 @@ HANDLE hAckHook = NULL; HANDLE hAvatarChanged = NULL; static BOOL g_bSortTimerIsSet = FALSE; static ClcContact *hitcontact = NULL; - +HANDLE hSkinFolder; +TCHAR SkinsFolder[MAX_PATH]; static int clcHookSmileyAddOptionsChanged(WPARAM wParam,LPARAM lParam); static int clcHookIconsChanged(WPARAM wParam, LPARAM lParam); @@ -64,13 +65,24 @@ static int clcProceedDragToScroll(HWND hwnd, int Y); static int clcExitDragToScroll(); -static int clcHookModulesLoaded(WPARAM wParam,LPARAM lParam) +int ReloadSkinFolder(WPARAM wParam, LPARAM lParam) +{ + FoldersGetCustomPathT(hSkinFolder, SkinsFolder, SIZEOF(SkinsFolder), _T(DEFAULT_SKIN_FOLDER)); + return 0; +} + +static int clcHookModulesLoaded(WPARAM wParam, LPARAM lParam) { if (MirandaExiting()) return 0; - HookEvent(ME_MODERNOPT_INITIALIZE,ModernOptInit); - HookEvent(ME_MODERNOPT_INITIALIZE,ModernSkinOptInit); + HookEvent(ME_MODERNOPT_INITIALIZE, ModernOptInit); + HookEvent(ME_MODERNOPT_INITIALIZE, ModernSkinOptInit); + + + HookEvent(ME_FOLDERS_PATH_CHANGED, ReloadSkinFolder); + hSkinFolder = FoldersRegisterCustomPathT(LPGEN("Skins"), LPGEN("Modern contact list"), MIRANDA_PATHT _T("\\") _T(DEFAULT_SKIN_FOLDER)); + FoldersGetCustomPathT(hSkinFolder, SkinsFolder, SIZEOF(SkinsFolder), _T(DEFAULT_SKIN_FOLDER)); if ( ServiceExists(MS_MC_DISABLEHIDDENGROUP)) CallService(MS_MC_DISABLEHIDDENGROUP, (WPARAM)TRUE, 0); -- cgit v1.2.3