summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-05-22 19:33:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-05-22 19:33:58 +0300
commitf56d89298e23be23b16efd33fc375eb4a9971c12 (patch)
treec00119c27ee50d701033aecaf25cdac1075665a8 /src
parent648ef4e3b4b7d2d4796021bfe193064708f1a3e7 (diff)
m_extraicons.h => CMPlugin
Diffstat (limited to 'src')
-rw-r--r--src/mir_app/src/ei_services.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mir_app/src/ei_services.cpp b/src/mir_app/src/ei_services.cpp
index 11aa883910..fff8bbb1c4 100644
--- a/src/mir_app/src/ei_services.cpp
+++ b/src/mir_app/src/ei_services.cpp
@@ -373,7 +373,7 @@ static void EI_PostCreate(BaseExtraIcon *extra, const char *name, int flags)
EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterCallback(const char *name, const char *description, const char *descIcon,
MIRANDAHOOK RebuildIcons, MIRANDAHOOK ApplyIcon,
- MIRANDAHOOKPARAM OnClick, LPARAM onClickParam, int flags, int _hLang)
+ MIRANDAHOOKPARAM OnClick, LPARAM onClickParam, int flags)
{
// EXTRAICON_TYPE_CALLBACK
if (IsEmpty(name) || IsEmpty(description))
@@ -390,13 +390,13 @@ EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterCallback(const char *name, const
int id = registeredExtraIcons.getCount() + 1;
BaseExtraIcon *extra = new CallbackExtraIcon(id, name, tszDesc, descIcon == nullptr ? "" : descIcon, RebuildIcons, ApplyIcon, OnClick, onClickParam);
- extra->m_hLangpack = _hLang;
+ extra->m_hLangpack = GetPluginLangByInstance(GetInstByAddress(RebuildIcons));
EI_PostCreate(extra, name, flags);
return (HANDLE)id;
}
EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterIcolib(const char *name, const char *description, const char *descIcon,
- MIRANDAHOOKPARAM OnClick, LPARAM onClickParam, int flags, int _hLang)
+ MIRANDAHOOKPARAM OnClick, LPARAM onClickParam, int flags)
{
if (IsEmpty(name) || IsEmpty(description))
return nullptr;
@@ -427,7 +427,7 @@ EXTERN_C MIR_APP_DLL(HANDLE) ExtraIcon_RegisterIcolib(const char *name, const ch
int id = registeredExtraIcons.getCount() + 1;
extra = new IcolibExtraIcon(id, name, tszDesc, descIcon == nullptr ? "" : descIcon, OnClick, onClickParam);
- extra->m_hLangpack = _hLang;
+ extra->m_hLangpack = GetPluginLangByInstance(GetInstByAddress((void*)name));
EI_PostCreate(extra, name, flags);
return (HANDLE)id;
}