diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-04 17:21:00 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-04 17:21:00 +0000 |
commit | 2e8bbe41e8f4c79d254de1f53a6dfb68403606fb (patch) | |
tree | 7aa3bad6a013dcecf340a7c4a48d7d8c4f153b17 /plugins/MirLua | |
parent | 89b08722d8006a0e6d3ef7183054cf00423ef4d0 (diff) |
MirLua: disabled AddMenuItem in m_genmenu
git-svn-id: http://svn.miranda-ng.org/main/trunk@16022 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 8 | ||||
-rw-r--r-- | plugins/MirLua/src/m_hotkeys.cpp | 2 |
2 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 8ec5baa7a3..25252f2d7b 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -140,8 +140,8 @@ static luaL_Reg genmenuApi[] = { "CheckMenuItem", lua_CheckMenuItem },
{ "RemoveMenuItem", lua_RemoveMenuItem },
- { "MO_MAIN", NULL },
- { "MO_CONTACT", NULL },
+ //{ "MO_MAIN", NULL },
+ //{ "MO_CONTACT", NULL },
{ NULL, NULL }
};
@@ -149,10 +149,10 @@ static luaL_Reg genmenuApi[] = LUAMOD_API int luaopen_m_genmenu(lua_State *L)
{
luaL_newlib(L, genmenuApi);
- lua_pushinteger(L, MO_MAIN);
+ /*lua_pushinteger(L, MO_MAIN);
lua_setfield(L, -2, "MO_MAIN");
lua_pushinteger(L, MO_CONTACT);
- lua_setfield(L, -2, "MO_CONTACT");
+ lua_setfield(L, -2, "MO_CONTACT");*/
return 1;
}
diff --git a/plugins/MirLua/src/m_hotkeys.cpp b/plugins/MirLua/src/m_hotkeys.cpp index a5ff2c4e34..a052f5beb1 100644 --- a/plugins/MirLua/src/m_hotkeys.cpp +++ b/plugins/MirLua/src/m_hotkeys.cpp @@ -57,7 +57,7 @@ static int lua_Unregister(lua_State *L) {
const char *name = luaL_checkstring(L, 1);
- ::CallService("CoreHotkeys/Unregister", 0, (LPARAM)name);
+ ::CallService(MS_HOTKEY_UNREGISTER, 0, (LPARAM)name);
return 0;
}
|