diff options
Diffstat (limited to 'plugins/NewEventNotify')
-rw-r--r-- | plugins/NewEventNotify/main.c | 6 | ||||
-rw-r--r-- | plugins/NewEventNotify/menuitem.c | 3 | ||||
-rw-r--r-- | plugins/NewEventNotify/options.c | 2 |
3 files changed, 3 insertions, 8 deletions
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)
{
|