From e6eb6b7a151f71a2cb9fd53eba3fef22c788a621 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 6 May 2011 09:06:14 +0200 Subject: clean test_edje.rb --- test/test_edje.rb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/test/test_edje.rb b/test/test_edje.rb index 0a45037..190336b 100644 --- a/test/test_edje.rb +++ b/test/test_edje.rb @@ -10,15 +10,20 @@ Efl::Edje::init # WIDTH=320 HEIGHT=240 +# EDC_FILE=File.join '/tmp','edje_test.edc' EDJE_FILE=File.join '/tmp','edje_test.edj' # +txt = ( ARGV.length>0 ? ARGV[0] : nil ) +# +# compile edje_file puts "write #{EDC_FILE}" content = DATA.read File.open(EDC_FILE,'w') do |f| f << content end puts "compile #{EDJE_FILE}" system "edje_cc #{EDC_FILE}" # +# load edje def create_my_group canvas, txt edje = canvas.edje_object_add if not edje.file_set EDJE_FILE, "my_group" @@ -35,13 +40,15 @@ def create_my_group canvas, txt edje end # -txt = ( ARGV.length>0 ? ARGV[0] : nil ) +def del_cb ecore_evas + Efl::Ecore.main_loop_quit +end # window = Efl::EcoreEvas::REcoreEvas.new { |w| w.resize WIDTH, HEIGHT w.move 100, 100 } -# +window.ecore_evas_callback_delete_request_set method(:del_cb) canvas = window.get edje = create_my_group canvas, txt window.show -- cgit v1.1-2-g2b99