diff options
author | George Hazan <ghazan@miranda.im> | 2017-10-09 18:56:03 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-10-09 18:56:03 +0300 |
commit | eec98453479bf86999060565ad90a63ff8f74942 (patch) | |
tree | c2dcb22ac74920b3cbcc96d2376dfcd77e9dcffc /src/mir_app | |
parent | 09c39492686b504391db1bda59d3a3c246435534 (diff) |
MS_CLIST_SETSTATUSMODE => Clist_SetStatusMode()
dunno how I could miss it
Diffstat (limited to 'src/mir_app')
-rw-r--r-- | src/mir_app/src/menu_clist.cpp | 10 | ||||
-rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 1 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/mir_app/src/menu_clist.cpp b/src/mir_app/src/menu_clist.cpp index 9012ecc183..631944a56a 100644 --- a/src/mir_app/src/menu_clist.cpp +++ b/src/mir_app/src/menu_clist.cpp @@ -722,12 +722,11 @@ static int MenuIconsChanged(WPARAM, LPARAM) return 0;
}
-static INT_PTR SetStatusMode(WPARAM wParam, LPARAM)
+MIR_APP_DLL(void) Clist_SetStatusMode(int iStatus)
{
prochotkey = true;
- Clist_MenuProcessCommand(LOWORD(wParam), MPCF_MAINMENU, 0);
+ Clist_MenuProcessCommand(iStatus, MPCF_MAINMENU, 0);
prochotkey = false;
- return 0;
}
int fnGetProtocolVisibility(const char *accName)
@@ -1062,7 +1061,8 @@ HGENMENU fnGetProtocolMenu(const char* proto) static INT_PTR HotkeySetStatus(WPARAM, LPARAM lParam)
{
- return SetStatusMode(lParam, 0);
+ Clist_SetStatusMode(lParam);
+ return 0;
}
/////////////////////////////////////////////////////////////////////////////////////////
@@ -1102,8 +1102,6 @@ void InitCustomMenus(void) CreateServiceFunction("CLISTMENUS/FreeOwnerDataContactMenu", FreeOwnerDataContactMenu);
CreateServiceFunction("CLISTMENUS/FreeOwnerDataStatusMenu", FreeOwnerDataStatusMenu);
- CreateServiceFunction(MS_CLIST_SETSTATUSMODE, SetStatusMode);
-
hPreBuildContactMenuEvent = CreateHookableEvent(ME_CLIST_PREBUILDCONTACTMENU);
hPreBuildMainMenuEvent = CreateHookableEvent(ME_CLIST_PREBUILDMAINMENU);
cli.hPreBuildStatusMenuEvent = CreateHookableEvent(ME_CLIST_PREBUILDSTATUSMENU);
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index f810bb6e0e..4e00ffee6a 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -456,3 +456,4 @@ Srmm_SetStatusText @460 Skin_AddSound @461
Skin_PlaySound @462
Skin_PlaySoundFile @463
+Clist_SetStatusMode @464
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index ec9a39feb2..fc4fd13ffe 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -456,3 +456,4 @@ Srmm_SetStatusText @460 Skin_AddSound @461
Skin_PlaySound @462
Skin_PlaySoundFile @463
+Clist_SetStatusMode @464
|