handle close event in lua

This commit is contained in:
Eduardo Bart
2012-01-07 03:35:50 -02:00
parent 806fb5995f
commit a3721b3a11
9 changed files with 34 additions and 12 deletions

View File

@@ -10,6 +10,14 @@ function fatal(msg)
Logger.log(LogFatal, msg)
end
function setonclose(func)
g_app.onClose = func
end
function exit()
g_app.exit()
end
function connect(object, signalsAndSlots, pushFront)
for signal,slot in pairs(signalsAndSlots) do
if not object[signal] then