summaryrefslogtreecommitdiff
path: root/src/modules/extraicons/extraicons.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-01 15:44:51 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-01 15:44:51 +0000
commitebdb188abf6ca1ee5e047c70b9e2be0d47ce67f1 (patch)
tree35b1364fa2c3eda858cd0e24a7deb74da640f491 /src/modules/extraicons/extraicons.cpp
parent7579779996bbbd5ef780d3f5ca7d5670d3761b45 (diff)
unneeded hook removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@2137 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/extraicons/extraicons.cpp')
-rw-r--r--src/modules/extraicons/extraicons.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/extraicons/extraicons.cpp b/src/modules/extraicons/extraicons.cpp
index ae571991e4..a2d7c3b34a 100644
--- a/src/modules/extraicons/extraicons.cpp
+++ b/src/modules/extraicons/extraicons.cpp
@@ -29,7 +29,6 @@
#include "IcolibExtraIcon.h"
#include "extraicons.h"
-#include "options.h"
#include "usedIcons.h"
// Prototypes ///////////////////////////////////////////////////////////////////////////
@@ -50,6 +49,7 @@ int IconsChanged(WPARAM wParam, LPARAM lParam);
int ClistExtraListRebuild(WPARAM wParam, LPARAM lParam);
int ClistExtraImageApply(WPARAM wParam, LPARAM lParam);
int ClistExtraClick(WPARAM wParam, LPARAM lParam);
+int InitOptionsCallback(WPARAM wParam, LPARAM lParam);
INT_PTR ExtraIcon_Register(WPARAM wParam, LPARAM lParam);
INT_PTR ExtraIcon_SetIcon(WPARAM wParam, LPARAM lParam);
@@ -125,8 +125,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
CallService("DBEditorpp/RegisterSingleModule", (WPARAM) MODULE_NAME "Groups", 0);
HookEvent(ME_SKIN2_ICONSCHANGED, &IconsChanged);
-
- InitOptions();
+ HookEvent(ME_OPT_INITIALISE, InitOptionsCallback);
return 0;
}
@@ -138,7 +137,6 @@ int IconsChanged(WPARAM wParam, LPARAM lParam)
int PreShutdown(WPARAM wParam, LPARAM lParam)
{
DefaultExtraIcons_Unload();
- DeInitOptions();
return 0;
}