diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-11 08:03:36 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-11 08:03:36 +0000 |
commit | 8f5721964ac7ee042e04776c722e459490061204 (patch) | |
tree | 0c936caa3cb1c851d512c7daa451e4b876420add /plugins/MirLua/src/m_genmenu.cpp | |
parent | a15cfbf2d3abc5a66b394e2da551828d39994d51 (diff) |
MirLua:
- added ability to create submenu
- fixed event hook for parameterless function
git-svn-id: http://svn.miranda-ng.org/main/trunk@14112 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/m_genmenu.cpp')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index 5a185f64bd..064758da2e 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -8,6 +8,7 @@ static int lua_AddMainMenuItem(lua_State *L) mi.position = lua_tointeger(L, 3);
mi.icolibItem = (HANDLE)lua_touserdata(L, 4);
mi.pszService = (char*)lua_tostring(L, 5);
+ mi.hParentMenu = (HGENMENU)lua_touserdata(L, 6);
HGENMENU res = ::Menu_AddMainMenuItem(&mi);
lua_pushlightuserdata(L, res);
@@ -23,6 +24,7 @@ static int lua_AddContactMenuItem(lua_State *L) mi.position = lua_tointeger(L, 3);
mi.icolibItem = (HANDLE)lua_touserdata(L, 4);
mi.pszService = (char*)lua_tostring(L, 5);
+ mi.hParentMenu = (HGENMENU)lua_touserdata(L, 6);
HGENMENU res = ::Menu_AddContactMenuItem(&mi);
lua_pushlightuserdata(L, res);
|