summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs/examples/popup.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/popup.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/popup.lua')
-rw-r--r--plugins/MirLua/docs/examples/popup.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/MirLua/docs/examples/popup.lua b/plugins/MirLua/docs/examples/popup.lua
index 395f650267..4d48ace8a3 100644
--- a/plugins/MirLua/docs/examples/popup.lua
+++ b/plugins/MirLua/docs/examples/popup.lua
@@ -1,7 +1,7 @@
--- include m_popup module
local popup = require('m_popup')
---- include m_genmenu module
-local genmenu = require('m_genmenu')
+--- include m_clist module
+local clist = require('m_clist')
m.CreateServiceFunction('MirLua/ShowPopup', function()
local popupData =
@@ -15,5 +15,5 @@ m.CreateServiceFunction('MirLua/ShowPopup', function()
end)
m.OnModulesLoaded(function()
- genmenu.AddMainMenuItem({ Name = "Show lua popup", Service = 'MirLua/ShowPopup' })
+ clist.AddMainMenuItem({ Name = "Show lua popup", Service = 'MirLua/ShowPopup' })
end)