summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2013-12-01 22:30:49 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2013-12-01 22:30:49 +0100
commit51d22d22b82f11f85964056957e96cfae38df098 (patch)
tree62c09021c5c48148dd1c489c628a7480deafc107
parentf8e118c75bf601001fb805d1dd69baed8aeafbe2 (diff)
test_button: add autodel and policy to behave like test_button-native
-rw-r--r--test/test_button.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_button.rb b/test/test_button.rb
index 93168d3..9908a0a 100644
--- a/test/test_button.rb
+++ b/test/test_button.rb
@@ -12,6 +12,7 @@ class MyWin < Elm::ElmWin
12 def initialize 12 def initialize
13 super(nil, "Greetings") do 13 super(nil, "Greetings") do
14 title_set "Hello, World!" 14 title_set "Hello, World!"
15 autodel_set true
15 resize 240, 60 16 resize 240, 60
16 show 17 show
17 end 18 end
@@ -33,6 +34,7 @@ end
33Elm.init 34Elm.init
34# 35#
35MyWin.new 36MyWin.new
37Elm.elm_policy_set(0, 1)
36# 38#
37Elm.run 39Elm.run
38Elm.shutdown 40Elm.shutdown