summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-09-25 14:32:41 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-09-25 14:32:41 +0000
commit497153f11a96cd336e8dadeeaa50c29e2c1bc2af (patch)
tree7b9c2097d8407988467a0e2c37c11ad9a63af2a7 /plugins/Clist_modern
parent9554d6d4d701beb6e3f4bbcf83d34baa30e7186b (diff)
- fix for the clist services creation order
- Clist Nicer's options adapted for the extraicons plugin git-svn-id: http://svn.miranda-ng.org/main/trunk@1651 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_clistmod.cpp27
1 files changed, 10 insertions, 17 deletions
diff --git a/plugins/Clist_modern/src/modern_clistmod.cpp b/plugins/Clist_modern/src/modern_clistmod.cpp
index d60a7a64ee..de45d9a20e 100644
--- a/plugins/Clist_modern/src/modern_clistmod.cpp
+++ b/plugins/Clist_modern/src/modern_clistmod.cpp
@@ -213,12 +213,10 @@ int CListMod_ContactListShutdownProc(WPARAM wParam,LPARAM lParam)
return 0;
}
-INT_PTR CLUIGetCapsService(WPARAM wParam,LPARAM lParam)
+INT_PTR GetCapsService(WPARAM wParam,LPARAM lParam)
{
- if (lParam)
- {
- switch (lParam)
- {
+ if (lParam) {
+ switch (lParam) {
case 0:
return 0;
case CLUIF2_PLUGININFO:
@@ -230,12 +228,9 @@ INT_PTR CLUIGetCapsService(WPARAM wParam,LPARAM lParam)
case CLUIF2_USEREXTRASTART:
return EXTRA_ICON_ADV3;
}
- return 0;
}
- else
- {
- switch (wParam)
- {
+ else {
+ switch (wParam) {
case CLUICAPS_FLAGS1:
return CLUIF_HIDEEMPTYGROUPS|CLUIF_DISABLEGROUPS|CLUIF_HASONTOPOPTION|CLUIF_HASAUTOHIDEOPTION;
case CLUICAPS_FLAGS2:
@@ -244,18 +239,18 @@ INT_PTR CLUIGetCapsService(WPARAM wParam,LPARAM lParam)
}
return 0;
}
+
HRESULT PreLoadContactListModule()
{
/* Global data initialization */
- {
- g_CluiData.fOnDesktop = FALSE;
- g_CluiData.dwKeyColor = RGB(255,0,255);
- g_CluiData.bCurrentAlpha = 255;
- }
+ g_CluiData.fOnDesktop = FALSE;
+ g_CluiData.dwKeyColor = RGB(255,0,255);
+ g_CluiData.bCurrentAlpha = 255;
//initialize firstly hooks
//clist interface is empty yet so handles should check
CreateServiceFunction(MS_CLIST_GETCONTACTICON, GetContactIcon);
+ CreateServiceFunction(MS_CLUI_GETCAPS, GetCapsService);
return S_OK;
}
@@ -265,8 +260,6 @@ INT_PTR SvcApplySkin(WPARAM wParam, LPARAM lParam);
HRESULT CluiLoadModule()
{
- CreateServiceFunction(MS_CLUI_GETCAPS,CLUIGetCapsService);
-
InitDisplayNameCache();
hookSystemShutdown_CListMod = HookEvent(ME_SYSTEM_SHUTDOWN,CListMod_ContactListShutdownProc);
hookOptInitialise_CList = HookEvent(ME_OPT_INITIALISE,CListOptInit);