summaryrefslogtreecommitdiff
path: root/src/mir_app
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-07-28 23:50:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-07-28 23:50:34 +0300
commite3e15b9efbec90cde1bcb74226aaa866820c739e (patch)
tree5089f1733c7a099476580541aacd78ffe2e485d7 /src/mir_app
parent18afe232354c2e0a68ed53d69e2bb546f5c5232e (diff)
another missing service restored
Diffstat (limited to 'src/mir_app')
-rw-r--r--src/mir_app/src/srmm_toolbar.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mir_app/src/srmm_toolbar.cpp b/src/mir_app/src/srmm_toolbar.cpp
index 8a23b50565..95f4b0205e 100644
--- a/src/mir_app/src/srmm_toolbar.cpp
+++ b/src/mir_app/src/srmm_toolbar.cpp
@@ -773,6 +773,12 @@ void KillModuleToolbarIcons(int _hLang)
}
}
+static INT_PTR BroadcastMessage(WPARAM, LPARAM lParam)
+{
+ Srmm_Broadcast((UINT)lParam, 0, 0);
+ return 0;
+}
+
static int SrmmModulesLoaded(WPARAM, LPARAM)
{
HookEvent(ME_OPT_INITIALISE, SrmmOptionsInit);
@@ -796,6 +802,8 @@ static int ConvertToolbarData(const char *szSetting, LPARAM)
void LoadSrmmToolbarModule()
{
+ CreateServiceFunction("SRMsg/BroadcastMessage", BroadcastMessage);
+
HookEvent(ME_SYSTEM_MODULESLOADED, SrmmModulesLoaded);
Miranda_WaitOnHandle(SrmmLoadToolbar);