summaryrefslogtreecommitdiff
path: root/include/m_extraicons.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-11-20 18:41:56 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-11-20 18:41:56 +0000
commit44141ccc8e279bfd390b91f2f0b737b39da6481c (patch)
treec3cee7cf5fde12c891c834272272b85911328198 /include/m_extraicons.h
parentc5c8084eff5beffa9c007de67782b973f2c64fde (diff)
automatic extra icon removal on dynamic plugin unloading
git-svn-id: http://svn.miranda-ng.org/main/trunk@2399 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'include/m_extraicons.h')
-rw-r--r--include/m_extraicons.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/m_extraicons.h b/include/m_extraicons.h
index 2d38fe7db4..add2858e02 100644
--- a/include/m_extraicons.h
+++ b/include/m_extraicons.h
@@ -139,6 +139,8 @@ typedef struct {
#ifndef _NO_WRAPPERS
#ifdef __cplusplus
+extern int hLangpack;
+
static HANDLE ExtraIcon_Register(
const char *name, const char *description, const char *descIcon,
MIRANDAHOOK RebuildIcons,
@@ -158,7 +160,7 @@ static HANDLE ExtraIcon_Register(
ei.OnClick = OnClick;
ei.onClickParam = onClickParam;
- return (HANDLE) CallService(MS_EXTRAICON_REGISTER, (WPARAM) &ei, 0);
+ return (HANDLE) CallService(MS_EXTRAICON_REGISTER, (WPARAM) &ei, hLangpack);
}
static HANDLE ExtraIcon_Register(
@@ -176,7 +178,7 @@ static HANDLE ExtraIcon_Register(
ei.OnClick = OnClick;
ei.onClickParam = onClickParam;
- return (HANDLE) CallService(MS_EXTRAICON_REGISTER, (WPARAM) &ei, 0);
+ return (HANDLE) CallService(MS_EXTRAICON_REGISTER, (WPARAM) &ei, hLangpack);
}
static int ExtraIcon_SetIcon(HANDLE hExtraIcon, HANDLE hContact, HANDLE hImage)