From 4c8d197c7259166c26e037f352f9cc801942308e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 7 Jul 2012 19:24:29 +0000 Subject: - removed unneeded hooks & services control; - arrangedpos uniqueness git-svn-id: http://svn.miranda-ng.org/main/trunk@824 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TopToolBar/InternalButtons.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'plugins/TopToolBar/InternalButtons.cpp') 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; } -- cgit v1.2.3