From 25221b7d2afb70f82eb3805330fd39a6f6708049 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 26 Jun 2012 23:41:55 +0000 Subject: mk: removed all LIST_INTERFACE, MI_INTERFACE & UTF8_INTERFACE instances. all related functions moved to mir_core. git-svn-id: http://svn.miranda-ng.org/main/trunk@644 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/NewEventNotify/main.c | 6 +----- plugins/NewEventNotify/menuitem.c | 3 +-- plugins/NewEventNotify/options.c | 2 +- 3 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/NewEventNotify') diff --git a/plugins/NewEventNotify/main.c b/plugins/NewEventNotify/main.c index c6240c0402..e355f7adce 100644 --- a/plugins/NewEventNotify/main.c +++ b/plugins/NewEventNotify/main.c @@ -48,7 +48,6 @@ extern PLUGIN_DATA* PopUpList[20]; //--------------------------- //---Some global variables for the plugin -struct MM_INTERFACE mmi; HINSTANCE hInst; PLUGIN_OPTIONS pluginOptions; @@ -221,10 +220,7 @@ int __declspec(dllexport) Load(PLUGINLINK *link) { pluginLink = link; hHookedInit = HookEvent(ME_SYSTEM_MODULESLOADED, HookedInit); - hHookedOpt = HookEvent(ME_OPT_INITIALISE, HookedOptions); - - mir_getMMI(&mmi); - mir_getLP(&pluginInfo); + hHookedOpt = HookEvent(ME_OPT_INITIALISE, HookedOptions); mir_getLP(&pluginInfo); InitI18N(); diff --git a/plugins/NewEventNotify/menuitem.c b/plugins/NewEventNotify/menuitem.c index f6d471b636..eac66a59aa 100644 --- a/plugins/NewEventNotify/menuitem.c +++ b/plugins/NewEventNotify/menuitem.c @@ -30,14 +30,13 @@ CLISTMENUITEM menuitem; HANDLE hMenuitemNotify; BOOL bNotify; -static int MenuitemNotifyCmd(WPARAM wParam,LPARAM lParam) +static INT_PTR MenuitemNotifyCmd(WPARAM wParam,LPARAM lParam) { bNotify = !bNotify; MenuitemUpdate(bNotify); //write changes to options->bDisable and into database Opt_DisableNEN(!bNotify); - return 0; } diff --git a/plugins/NewEventNotify/options.c b/plugins/NewEventNotify/options.c index 401ab0941d..24ecc24485 100644 --- a/plugins/NewEventNotify/options.c +++ b/plugins/NewEventNotify/options.c @@ -145,7 +145,7 @@ static void UpdateOptionsDlgItemsState(HWND hWnd) EnableDlgItem(hWnd, IDC_DELAY_OTHERS, options->iDelayOthers != -1); } -static BOOL CALLBACK OptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) +static INT_PTR CALLBACK OptionsDlgProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { -- cgit v1.2.3