From 7eac2cc7fc59423d67995bc012aaf0cbcdc206ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 22 Aug 2011 11:33:10 +0200 Subject: test_elementary: fix main window --- test/test_elementary.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/test/test_elementary.rb b/test/test_elementary.rb index 62cc2a1..7e80cf2 100644 --- a/test/test_elementary.rb +++ b/test/test_elementary.rb @@ -162,7 +162,7 @@ class TestWin < Elm::ElmWin # def initialize name, title super FFI::MemoryPointer::NULL, name - title = title + self.title = title feed smart_callback_add 'delete,request', method(:on_delete) end @@ -211,10 +211,9 @@ class TestWin < Elm::ElmWin TESTS.sort.each do |l,m| icon = nil if Tests.respond_to? m - # TODO dosen't work ????? icon = Elm::ElmIcon.new self icon.file = "#{PACKAGE_DATA_DIR}/images/icon_00.png", nil - icon.scale = true, true + icon.size_hint_min = 20,20 end it = @li.item_append l, nil, icon, method(:try_test), FFI::MemoryPointer.from_string(m.to_s) it.del_cb_set method(:free_list_item) @@ -256,7 +255,7 @@ class TestWin < Elm::ElmWin end # def elm_main - win = TestWin.new 'test_elementare', 'Elementary Tests' + win = TestWin.new 'test_elementary', 'Elementary Tests' win.evas_object_resize 320, 480 win.show end -- cgit v1.1-2-g2b99