summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/m_genmenu.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-21 18:40:46 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-21 18:40:46 +0000
commitb048ea322fac0d6cb59b9f1645fad9d7a898fc57 (patch)
tree77cab073f0cca54369cf47dadb973bf45d640e15 /plugins/MirLua/src/m_genmenu.cpp
parent78f36745d03f03d4772e09720eef976cff5a4d9b (diff)
MirLua: Scripts reloading pt.2
git-svn-id: http://svn.miranda-ng.org/main/trunk@14304 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r--plugins/MirLua/src/m_genmenu.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp
index fb651b1515..4f1162ba9b 100644
--- a/plugins/MirLua/src/m_genmenu.cpp
+++ b/plugins/MirLua/src/m_genmenu.cpp
@@ -4,6 +4,7 @@ static CLISTMENUITEM* MakeMenuItem(lua_State *L)
{
CLISTMENUITEM *pmi = (CLISTMENUITEM*)mir_calloc(sizeof(CLISTMENUITEM));
pmi->cbSize = sizeof(CLISTMENUITEM);
+ pmi->hLangpack = hScriptsLangpack;
lua_pushstring(L, "Flags");
lua_gettable(L, -2);
@@ -51,7 +52,7 @@ static int lua_AddMainMenuItem(lua_State *L)
mir_ptr<CLISTMENUITEM> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddMainMenuItem(pmi);
+ HGENMENU res = (HGENMENU)::CallService("CList/AddMainMenuItem", 0, (LPARAM)pmi);
lua_pushlightuserdata(L, res);
return 1;
@@ -67,7 +68,7 @@ static int lua_AddContactMenuItem(lua_State *L)
mir_ptr<CLISTMENUITEM> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddContactMenuItem(pmi);
+ HGENMENU res = (HGENMENU)::CallService("CList/AddContactMenuItem", 0, (LPARAM)pmi);
lua_pushlightuserdata(L, res);
return 1;
@@ -83,7 +84,7 @@ static int lua_AddTrayMenuItem(lua_State *L)
mir_ptr<CLISTMENUITEM> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddTrayMenuItem(pmi);
+ HGENMENU res = (HGENMENU)::CallService("CList/AddTrayMenuItem", 0, (LPARAM)pmi);
lua_pushlightuserdata(L, res);
return 1;