diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-07 19:24:29 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-07 19:24:29 +0000 |
commit | 4c8d197c7259166c26e037f352f9cc801942308e (patch) | |
tree | 9563615d1fc46c5f62e892416d77aef0b4172680 /plugins/TopToolBar/InternalButtons.cpp | |
parent | 3dfbb6741fe9e70bff6b70608cd7663742287a4a (diff) |
- removed unneeded hooks & services control;
- arrangedpos uniqueness
git-svn-id: http://svn.miranda-ng.org/main/trunk@824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TopToolBar/InternalButtons.cpp')
-rw-r--r-- | plugins/TopToolBar/InternalButtons.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/TopToolBar/InternalButtons.cpp b/plugins/TopToolBar/InternalButtons.cpp index 08c8f09802..2a79cd566f 100644 --- a/plugins/TopToolBar/InternalButtons.cpp +++ b/plugins/TopToolBar/InternalButtons.cpp @@ -91,10 +91,10 @@ int UnLoadInternalButtons() int LoadInternalButtons(HWND hwnd)
{
hwndContactTree = hwnd;
- arServices.insert( CreateServiceFunction(TTBI_GROUPSHOWHIDE, TTBInternalGroupShowHide));
- arServices.insert( CreateServiceFunction(TTBI_SOUNDSONOFF, TTBInternalSoundsOnOff));
+ CreateServiceFunction(TTBI_GROUPSHOWHIDE, TTBInternalGroupShowHide);
+ CreateServiceFunction(TTBI_SOUNDSONOFF, TTBInternalSoundsOnOff);
- arServices.insert( CreateServiceFunction(TTBI_MAINMENUBUTT, TTBInternalMainMenuButt));
+ CreateServiceFunction(TTBI_MAINMENUBUTT, TTBInternalMainMenuButt);
int ShowOnline = DBGetContactSettingByte(NULL, "CList", "HideOffline", 0);
int ShowGroups = DBGetContactSettingByte(NULL, "CList", "UseGroups", 2);
@@ -169,7 +169,7 @@ int LoadInternalButtons(HWND hwnd) CallService(MS_TTB_SETBUTTONOPTIONS, MAKEWPARAM(TTBO_TIPNAME, hMainMenuBut),
(LPARAM)"Show Main Menu");
- arHooks.insert(HookEvent(ME_DB_CONTACT_SETTINGCHANGED,OnSettingChanging));
+ HookEvent(ME_DB_CONTACT_SETTINGCHANGED,OnSettingChanging);
return 0;
}
|