From 2e8bbe41e8f4c79d254de1f53a6dfb68403606fb Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 4 Jan 2016 17:21:00 +0000 Subject: MirLua: disabled AddMenuItem in m_genmenu git-svn-id: http://svn.miranda-ng.org/main/trunk@16022 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_genmenu.cpp | 8 ++++---- 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; } -- cgit v1.2.3