From 737d05018bbc2da54414bea0c2ccce6f1e15bde2 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 17:14:39 +0300 Subject: Hotkey_Register => CMPlugin::addHotkey --- include/m_hotkeys.h | 2 +- include/m_icolib.h | 2 +- include/newpluginapi.h | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) (limited to 'include') diff --git a/include/m_hotkeys.h b/include/m_hotkeys.h index 016a4864b1..3964415921 100644 --- a/include/m_hotkeys.h +++ b/include/m_hotkeys.h @@ -53,7 +53,7 @@ struct HOTKEYDESC // Registers new hotkey // Returns 0 on failure or hotkey atom id on success -EXTERN_C MIR_APP_DLL(int) Hotkey_Register(const HOTKEYDESC *hk, int = hLangpack); +EXTERN_C MIR_APP_DLL(int) Hotkey_Register(const HOTKEYDESC *hk, int langId); ///////////////////////////////////////////////////////////////////////////////////////// // Unregister existing hotkey diff --git a/include/m_icolib.h b/include/m_icolib.h index 3e8bdef226..465ccf36b2 100644 --- a/include/m_icolib.h +++ b/include/m_icolib.h @@ -60,7 +60,7 @@ extern "C" // Adds an icon into the icon library // returns a handle to the newly added item -MIR_APP_DLL(HANDLE) IcoLib_AddIcon(SKINICONDESC *sid, int langId); +MIR_APP_DLL(HANDLE) IcoLib_AddIcon(const SKINICONDESC *sid, int langId); /////////////////////////////////////////////////////////////////////////////// // Removes an icon from icon library by icon's name or handle diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 3e8f2d6993..611b92b7b0 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -199,8 +199,9 @@ public: void openOptions(const wchar_t *pszGroup, const wchar_t *pszPage = 0, const wchar_t *pszTab = 0); void openOptionsPage(const wchar_t *pszGroup, const wchar_t *pszPage = 0, const wchar_t *pszTab = 0); - HANDLE addIcon(struct SKINICONDESC*); + HANDLE addIcon(const struct SKINICONDESC*); + int addHotkey(const struct HOTKEYDESC*); int addSound(const char *name, const wchar_t *section, const wchar_t *description, const wchar_t *defaultFile = nullptr); int addUserInfo(WPARAM wParam, struct OPTIONSDIALOGPAGE *odp); -- cgit v1.2.3