summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-25 11:16:43 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-25 11:16:43 +0000
commitbe34c541bed5aec3f5e62da42ae2b31f2f1d7884 (patch)
tree5aa6c7acad1b0c3a5acedcea3dd146962da9a248
parentde83ac2ff7e90537efc0153adedf2f700b4e7880 (diff)
NewEventNotify - some adaptation
git-svn-id: http://svn.miranda-ng.org/main/trunk@630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r--plugins/NewEventNotify/main.c2
-rw-r--r--plugins/NewEventNotify/menuitem.c2
-rw-r--r--plugins/NewEventNotify/options.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/plugins/NewEventNotify/main.c b/plugins/NewEventNotify/main.c
index c35a7907c1..5b019f0b5a 100644
--- a/plugins/NewEventNotify/main.c
+++ b/plugins/NewEventNotify/main.c
@@ -53,6 +53,7 @@ struct MM_INTERFACE mmi;
HINSTANCE hInst;
PLUGIN_OPTIONS pluginOptions;
PLUGINLINK *pluginLink;
+int hLangpack;
PLUGININFOEX pluginInfo = {
sizeof(PLUGININFOEX),
"NewEventNotify",
@@ -223,6 +224,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link)
hHookedOpt = HookEvent(ME_OPT_INITIALISE, HookedOptions);
mir_getMMI(&mmi);
+ mir_getLP(&pluginInfo);
InitI18N();
diff --git a/plugins/NewEventNotify/menuitem.c b/plugins/NewEventNotify/menuitem.c
index e0839e6dea..f6d471b636 100644
--- a/plugins/NewEventNotify/menuitem.c
+++ b/plugins/NewEventNotify/menuitem.c
@@ -71,7 +71,7 @@ int MenuitemInit(BOOL bStatus)
menuitem.flags = CMIF_KEEPUNTRANSLATED;
if (g_UnicodeCore)
menuitem.flags |= CMIF_UNICODE;
- hMenuitemNotify = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM)&menuitem);
+ hMenuitemNotify = Menu_AddContactMenuItem(&menuitem);
bNotify = bStatus;
MenuitemUpdate(bNotify);
diff --git a/plugins/NewEventNotify/options.c b/plugins/NewEventNotify/options.c
index ba96e10fda..5e45cee607 100644
--- a/plugins/NewEventNotify/options.c
+++ b/plugins/NewEventNotify/options.c
@@ -315,7 +315,7 @@ int OptionsAdd(HINSTANCE hInst, WPARAM addInfo)
odp.flags = ODPF_BOLDGROUPS;
if (g_UnicodeCore) odp.flags |= ODPF_UNICODE;
odp.pfnDlgProc = OptionsDlgProc;
- CallService(MS_OPT_ADDPAGE, addInfo, (LPARAM)&odp);
+ Options_AddPage( addInfo, &odp);
return 0;
}