summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-06 22:12:20 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-06 22:12:20 +0000
commit9de0202a0b12838d505825413c3cbcce5edabc11 (patch)
tree6f1f707f3e17c19e5cd08745e76c5299f9ba827b /plugins/Scriver/src
parent4e3088029101cc1e9bbc46984910a47bc0530e8f (diff)
cleanup of the unnecessary UnhookEvent() calls
git-svn-id: http://svn.miranda-ng.org/main/trunk@3909 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/chat/options.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/plugins/Scriver/src/chat/options.cpp b/plugins/Scriver/src/chat/options.cpp
index 2f250b799a..84437d2979 100644
--- a/plugins/Scriver/src/chat/options.cpp
+++ b/plugins/Scriver/src/chat/options.cpp
@@ -28,7 +28,6 @@ extern HBRUSH hListBkgBrush;
extern HBRUSH hListSelectedBkgBrush;
extern FONTINFO aFonts[OPTIONS_FONTCOUNT];
-HANDLE g_hOptions = NULL;
static HWND hPathTip = 0;
struct branch_t
@@ -882,11 +881,11 @@ void SetIndentSize()
int OptionsInit(void)
{
- LOGFONT lf;
-
- g_hOptions = HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
+ HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
LoadLogFonts();
+
+ LOGFONT lf;
LoadMsgDlgFont(18, &lf, NULL, TRUE);
lstrcpy(lf.lfFaceName, _T("MS Shell Dlg"));
lf.lfUnderline = lf.lfItalic = lf.lfStrikeOut = 0;
@@ -917,7 +916,6 @@ int OptionsInit(void)
int OptionsUnInit(void)
{
FreeGlobalSettings();
- UnhookEvent(g_hOptions);
DeleteObject(hListBkgBrush);
DeleteObject(hListSelectedBkgBrush);
DeleteObject(g_Settings.NameFont);