summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/efl/elementary.rb8
-rw-r--r--test/test_elementary.rb5
2 files changed, 3 insertions, 10 deletions
diff --git a/lib/efl/elementary.rb b/lib/efl/elementary.rb
index 8491613..aa90eaf 100644
--- a/lib/efl/elementary.rb
+++ b/lib/efl/elementary.rb
@@ -653,14 +653,6 @@ module Efl
search_prefixes 'elm_thumb_'
end
#
- class ElmToggle < ElmObject
- #
- include Helper
- constructor :elm_toggle_add
- search_prefixes 'elm_toggle_'
- #
- end
- #
class ElmToolbar < ElmObject
#
include Helper
diff --git a/test/test_elementary.rb b/test/test_elementary.rb
index 7e80cf2..4e2e2ef 100644
--- a/test/test_elementary.rb
+++ b/test/test_elementary.rb
@@ -188,7 +188,8 @@ class TestWin < Elm::ElmWin
@fr.content = lb
lb.show
end
- Elm::ElmToggle.new self do |tg|
+ Elm::ElmCheck.new self do |tg|
+ tg.style = 'toggle'
tg.text = 'UI-Mirroring:'
tg.state = Native.elm_mirrored_get
tg.smart_callback_add 'changed', method(:tg_changed)
@@ -237,7 +238,7 @@ class TestWin < Elm::ElmWin
end
#
def tg_changed data, evas_obj, event_info
- Native.elm_mirrored_set Native.elm_toggle_state_get evas_obj
+ Native.elm_mirrored_set Native.elm_check_state_get evas_obj
end
#
def index_changed data, evas_obj, event_info