summaryrefslogtreecommitdiff
path: root/tests/ui/hello.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-12-19 22:38:24 +0800
committerruki <[email protected]>2017-12-19 09:50:27 +0800
commit5924ef4adbe4b084c465bc9604254be60d147074 (patch)
tree93c00311a46d3ac7034b775ba4fa6b69212bff9f /tests/ui/hello.lua
parentb061bd17789d582771c77778e17a4f5576e1a01f (diff)
remove some redraw ops
Diffstat (limited to 'tests/ui/hello.lua')
-rw-r--r--tests/ui/hello.lua15
1 files changed, 14 insertions, 1 deletions
diff --git a/tests/ui/hello.lua b/tests/ui/hello.lua
index 847d75ded..21bcd1b96 100644
--- a/tests/ui/hello.lua
+++ b/tests/ui/hello.lua
@@ -25,7 +25,20 @@
-- imports
import("core.ui.application")
+-- the hello application
+local hello = application()
+
+-- init hello
+function hello:init()
+
+ -- init name
+ application.init(self, "hello")
+
+ -- init title
+ self:menubar():title_set("xmake")
+end
+
-- main entry
function main(...)
- application.run("hello", ...)
+ hello:run(...)
end