summaryrefslogtreecommitdiffstats
path: root/test/test_elm_win_class.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_elm_win_class.rb')
-rw-r--r--test/test_elm_win_class.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/test/test_elm_win_class.rb b/test/test_elm_win_class.rb
index 5aa3491..fb98e71 100644
--- a/test/test_elm_win_class.rb
+++ b/test/test_elm_win_class.rb
@@ -5,14 +5,12 @@ require 'efl/elementary'
#
include Efl
#
-DATA = FFI::MemoryPointer.from_string("my data")
-#
class MyWin < Elm::ElmWin
def initialize name, title
super FFI::MemoryPointer::NULL, name
title_set title
feed
- smart_callback_add "delete,request", method(:exit), DATA
+ smart_callback_add "delete,request", method(:exit), FFI::MemoryPointer.from_string("my data")
end
def feed
# using block