summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs/examples/core.lua
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-06-30 15:31:44 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-06-30 15:31:44 +0000
commit5dac5be47f2d9af8cbceead6511ff4c0fc40bab5 (patch)
treee7835f34984466b1382e75c8eebc656f4e9cfb4f /plugins/MirLua/docs/examples/core.lua
parentf65741787bee7c5d143d733efb32b7ec3452edc6 (diff)
MirLua: !api break
- separated m_clist and m_genmenu modules - moved AddMainMenuItem, AddContactMenuItem, AddTrayMenuItem to m_clist - added BuildMainMenu, BuildContactMenu and BuildTrayMenu to m_clist - updated examples - version bump git-svn-id: http://svn.miranda-ng.org/main/trunk@14458 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/docs/examples/core.lua')
-rw-r--r--plugins/MirLua/docs/examples/core.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/docs/examples/core.lua b/plugins/MirLua/docs/examples/core.lua
index 064ab58fad..e18dc0577a 100644
--- a/plugins/MirLua/docs/examples/core.lua
+++ b/plugins/MirLua/docs/examples/core.lua
@@ -1,7 +1,7 @@
-- core module (m) is included by default
--- include m_genmenu module
+--- include m_clist module
+local clist = require('m_clist')
-- include m_icolib module
-local genmenu = require('m_genmenu')
local icolib = require('m_icolib')
-- Add icon for menu items
@@ -10,5 +10,5 @@ local hRestartIcon = icolib.AddIcon('restartIcon', 'Restart')
-- Subscribe to [[Miranda/System/ModulesLoaded]] event
m.OnModulesLoaded(function()
-- Add menu item to main menu that allow to restart Miranda NG
- genmenu.AddMainMenuItem("Restart", 0, 0, hRestartIcon, "Miranda/System/Restart")
+ clist.AddMainMenuItem("Restart", 0, 0, hRestartIcon, "Miranda/System/Restart")
end)