diff options
author | George Hazan <ghazan@miranda.im> | 2017-08-08 12:06:16 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-08-08 12:06:16 +0300 |
commit | fc8c1d39c4955db131d423a9930f5da878d10f9e (patch) | |
tree | 2d996549964d08f42570d654de026007266858e1 /src | |
parent | 3f679c2dd94700f4f47811512bae2e904c9a998c (diff) |
nasty clutch removed, to be replaced with HookTemporaryEvent
Diffstat (limited to 'src')
-rw-r--r-- | src/mir_app/src/chat.h | 3 | ||||
-rw-r--r-- | src/mir_app/src/pluginopts.cpp | 3 | ||||
-rw-r--r-- | src/mir_app/src/srmm_toolbar.cpp | 4 |
3 files changed, 2 insertions, 8 deletions
diff --git a/src/mir_app/src/chat.h b/src/mir_app/src/chat.h index 752f489577..290f4f6efa 100644 --- a/src/mir_app/src/chat.h +++ b/src/mir_app/src/chat.h @@ -101,9 +101,6 @@ void LoadChatIcons(void); int LoadChatModule(void);
void UnloadChatModule(void);
-// srmm_toolbar.cpp
-void CALLBACK SrmmLoadToolbar();
-
// tools.c
int DoRtfToTags(CMStringW &pszText, int iNumColors, COLORREF *pColors);
wchar_t *RemoveFormatting(const wchar_t* pszText);
diff --git a/src/mir_app/src/pluginopts.cpp b/src/mir_app/src/pluginopts.cpp index 6a3e2d7fba..081ecbcd73 100644 --- a/src/mir_app/src/pluginopts.cpp +++ b/src/mir_app/src/pluginopts.cpp @@ -201,9 +201,6 @@ static bool LoadPluginDynamically(PluginListItemData *dat) if (CallPluginEventHook(pPlug->bpi.hInst, hModulesLoadedEvent, 0, 0) != 0)
goto LBL_Error;
- if (hasMuuid(pPlug->bpi, miid_srmm))
- SrmmLoadToolbar();
-
dat->hInst = pPlug->bpi.hInst;
NotifyFastHook(hevLoadModule, (WPARAM)pPlug->bpi.pluginInfo, (LPARAM)pPlug->bpi.hInst);
return true;
diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp index 7381fafcfb..e7f1c5e1bd 100644 --- a/src/mir_app/src/srmm_toolbar.cpp +++ b/src/mir_app/src/srmm_toolbar.cpp @@ -829,9 +829,10 @@ static int SrmmModulesLoaded(WPARAM, LPARAM) return 0; } -void CALLBACK SrmmLoadToolbar() +static void CALLBACK SrmmLoadToolbar() { NotifyEventHooks(hHookToolBarLoadedEvt, 0, 0); + DestroyHookableEvent(hHookToolBarLoadedEvt); } static int ConvertToolbarData(const char *szSetting, LPARAM) @@ -873,7 +874,6 @@ void LoadSrmmToolbarModule() void UnloadSrmmToolbarModule() { DestroyHookableEvent(hHookButtonPressedEvt); - DestroyHookableEvent(hHookToolBarLoadedEvt); wipeList(arButtonsList); } |