summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar/src/toolbar.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-10 11:51:00 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-10 11:51:00 +0000
commit03758f8f918f392386a1dd7a1c7a795927f8c221 (patch)
treedc4dede8653397df0275f49e730b0d44605d7a7c /plugins/TopToolBar/src/toolbar.cpp
parent1416051048756ab769de52ab5eb67a31e41524fd (diff)
- ME_TTB_INITBUTTONS event considered useless;
- clist_modern & clist_nicer are trained to reload TTB buttons when TopToolBar plugin is loaded dynamically; - TTB processing code slightly reordered git-svn-id: http://svn.miranda-ng.org/main/trunk@3953 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/src/toolbar.cpp')
-rw-r--r--plugins/TopToolBar/src/toolbar.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/plugins/TopToolBar/src/toolbar.cpp b/plugins/TopToolBar/src/toolbar.cpp
index 655117fc50..a0e5509ed8 100644
--- a/plugins/TopToolBar/src/toolbar.cpp
+++ b/plugins/TopToolBar/src/toolbar.cpp
@@ -13,7 +13,7 @@ HWND hwndContactList = 0;
int nextButtonId = 200;
-HANDLE hTTBModuleLoaded, hTTBInitButtons;
+HANDLE hTTBModuleLoaded;
static WNDPROC buttonWndProc;
CRITICAL_SECTION csButtonsHook;
@@ -677,8 +677,6 @@ int LoadToolbarModule()
HookEvent(ME_OPT_INITIALISE, TTBOptInit);
hTTBModuleLoaded = CreateHookableEvent(ME_TTB_MODULELOADED);
- hTTBInitButtons = CreateHookableEvent(ME_TTB_INITBUTTONS);
- SetHookDefaultForHookableEvent(hTTBInitButtons, InitInternalButtons);
CreateServiceFunction("TopToolBar/AddButton", TTBAddButton);
CreateServiceFunction(MS_TTB_REMOVEBUTTON, TTBRemoveButton);
@@ -712,7 +710,6 @@ int LoadToolbarModule()
int UnloadToolbarModule()
{
DestroyHookableEvent(hTTBModuleLoaded);
- DestroyHookableEvent(hTTBInitButtons);
DeleteObject(hBmpSeparator);
DeleteCriticalSection(&csButtonsHook);