From be34c541bed5aec3f5e62da42ae2b31f2f1d7884 Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Mon, 25 Jun 2012 11:16:43 +0000 Subject: NewEventNotify - some adaptation git-svn-id: http://svn.miranda-ng.org/main/trunk@630 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/main.c | 2 ++ plugins/NewEventNotify/menuitem.c | 2 +- plugins/NewEventNotify/options.c | 2 +- 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; } -- cgit v1.2.3