summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.cpp
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-04-01 15:27:41 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-04-01 15:27:41 +0000
commitbd612763172841f30f84c3db63c7aca9c8282cd2 (patch)
treeefa3788ce379267d737d1ef673dafa9ba008c0bb /plugins/Clist_modern/src/modern_clc.cpp
parentfb979e82ccd9d1000c83cdde572365841275d1c1 (diff)
- 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
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp20
1 files changed, 16 insertions, 4 deletions
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);