diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-06 09:06:14 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-05-06 09:06:14 +0200 |
commit | e6eb6b7a151f71a2cb9fd53eba3fef22c788a621 (patch) | |
tree | 7198128ecc4da770681d027ba8559fdbaee13cd2 /test/test_edje.rb | |
parent | fd0042f60382b8bfd3f1d64c5c9517bbd494bfc8 (diff) | |
download | ffi-efl-e6eb6b7a151f71a2cb9fd53eba3fef22c788a621.zip ffi-efl-e6eb6b7a151f71a2cb9fd53eba3fef22c788a621.tar.gz |
clean test_edje.rb
Diffstat (limited to 'test/test_edje.rb')
-rw-r--r-- | test/test_edje.rb | 11 |
1 files 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 |