diff options
author | George Hazan <ghazan@miranda.im> | 2018-05-22 18:00:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-05-22 18:00:57 +0300 |
commit | feac2b1a6a79c9d0bb58b0825ec2a776b888f9ce (patch) | |
tree | ef2fde024f8e13ac1ff5f2de8c772066319b3e6c /plugins/MirLua/src | |
parent | 737d05018bbc2da54414bea0c2ccce6f1e15bde2 (diff) |
m_genmenu.h unbound from hLangpack
Diffstat (limited to 'plugins/MirLua/src')
-rw-r--r-- | plugins/MirLua/src/Modules/m_clist.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/Modules/m_clist.cpp b/plugins/MirLua/src/Modules/m_clist.cpp index 5e5b7475b8..abe3da84c3 100644 --- a/plugins/MirLua/src/Modules/m_clist.cpp +++ b/plugins/MirLua/src/Modules/m_clist.cpp @@ -46,7 +46,7 @@ static int clist_AddMainMenuRoot(lua_State *L) int position = lua_tointeger(L, 2); HANDLE hIcon = (HANDLE)lua_touserdata(L, 3); - HGENMENU res = Menu_CreateRoot(MO_MAIN, ptrW(Utf8DecodeW(name)), position, hIcon); + HGENMENU res = g_plugin.addRootMenu(MO_MAIN, ptrW(Utf8DecodeW(name)), position, hIcon); if (res != nullptr) lua_pushlightuserdata(L, res); else @@ -59,7 +59,7 @@ static int clist_AddMainMenuItem(lua_State *L) { luaL_checktype(L, 1, LUA_TTABLE); - CMenuItem mi; + CMenuItem mi(g_plugin); MakeMenuItem(L, mi); HGENMENU res = Menu_AddMainMenuItem(&mi); @@ -77,7 +77,7 @@ static int clist_AddContactMenuRoot(lua_State *L) int position = lua_tointeger(L, 2); HANDLE hIcon = (HANDLE)lua_touserdata(L, 3); - HGENMENU res = Menu_CreateRoot(MO_MAIN, ptrW(Utf8DecodeW(name)), position, hIcon); + HGENMENU res = g_plugin.addRootMenu(MO_MAIN, ptrW(Utf8DecodeW(name)), position, hIcon); if (res != nullptr) lua_pushlightuserdata(L, res); else @@ -90,7 +90,7 @@ static int clist_AddContactMenuItem(lua_State *L) { luaL_checktype(L, 1, LUA_TTABLE); - CMenuItem mi; + CMenuItem mi(g_plugin); MakeMenuItem(L, mi); ptrA szProto(mir_utf8decodeA(lua_tostring(L, 2))); @@ -107,7 +107,7 @@ static int clist_AddTrayMenuItem(lua_State *L) { luaL_checktype(L, 1, LUA_TTABLE); - CMenuItem mi; + CMenuItem mi(g_plugin); MakeMenuItem(L, mi); HGENMENU res = Menu_AddTrayMenuItem(&mi); |