diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-28 22:07:01 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-28 22:07:01 +0000 |
commit | 6dc86e6320348e4cef1deeaccaa30e7bd8d70447 (patch) | |
tree | 4ebbcd97fe25766223399fb6d2f96369be83b3cc /plugins/MirLua | |
parent | a68d05a5501a4e2d03205352a07de6e10d9313c3 (diff) |
MirLua:
- fixed menu item duplication
! broken compatibility for ModifyMenuItem in m_genmenu
git-svn-id: http://svn.miranda-ng.org/main/trunk@14436 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_genmenu.cpp | 6 | ||||
-rw-r--r-- | plugins/MirLua/src/version.h | 4 |
2 files changed, 4 insertions, 6 deletions
diff --git a/plugins/MirLua/src/m_genmenu.cpp b/plugins/MirLua/src/m_genmenu.cpp index eabc1cef71..f2839d9a82 100644 --- a/plugins/MirLua/src/m_genmenu.cpp +++ b/plugins/MirLua/src/m_genmenu.cpp @@ -51,7 +51,7 @@ static int lua_AddMainMenuItem(lua_State *L) mir_ptr<TMO_MenuItem> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddMainMenuItem(pmi);
+ HGENMENU res = ::Menu_AddMainMenuItem(pmi, hScriptsLangpack);
lua_pushlightuserdata(L, res);
return 1;
@@ -67,7 +67,7 @@ static int lua_AddContactMenuItem(lua_State *L) mir_ptr<TMO_MenuItem> pmi(MakeMenuItem(L));
- HGENMENU res = ::Menu_AddContactMenuItem(pmi);
+ HGENMENU res = ::Menu_AddContactMenuItem(pmi, NULL, hScriptsLangpack);
lua_pushlightuserdata(L, res);
return 1;
@@ -96,8 +96,6 @@ static int lua_ModifyMenuItem(lua_State *L) HANDLE hIcolibItem = lua_touserdata(L, 3);
int flags = lua_tointeger(L, 4);
- mir_ptr<TMO_MenuItem> pmi(MakeMenuItem(L));
-
INT_PTR res = ::Menu_ModifyItem(hMenuItem, name, hIcolibItem, flags);
lua_pushinteger(L, res);
return 1;
diff --git a/plugins/MirLua/src/version.h b/plugins/MirLua/src/version.h index bd01214dc9..ce9b61cf05 100644 --- a/plugins/MirLua/src/version.h +++ b/plugins/MirLua/src/version.h @@ -1,7 +1,7 @@ #define __MAJOR_VERSION 0
#define __MINOR_VERSION 11
-#define __RELEASE_NUM 0
-#define __BUILD_NUM 2
+#define __RELEASE_NUM 1
+#define __BUILD_NUM 0
#include <stdver.h>
|