diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 16:43:14 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2012-02-28 16:43:14 +0100 |
commit | 04170bc0a407b106a10576e51369f91dc95ce19f (patch) | |
tree | b33dcce7a9a06455b7dc810219bcb969c1536884 /lib/efl | |
parent | bd3ae6b7e425dac8485e4dd2462b0c8fe145865a (diff) | |
download | ffi-efl-04170bc0a407b106a10576e51369f91dc95ce19f.zip ffi-efl-04170bc0a407b106a10576e51369f91dc95ce19f.tar.gz |
fix mix between genlist and gengrid
Diffstat (limited to 'lib/efl')
-rw-r--r-- | lib/efl/elm/elm_gengrid.rb | 37 | ||||
-rw-r--r-- | lib/efl/elm/elm_genlist.rb | 2 |
2 files changed, 14 insertions, 25 deletions
diff --git a/lib/efl/elm/elm_gengrid.rb b/lib/efl/elm/elm_gengrid.rb index 15c6c40..2daa2cf 100644 --- a/lib/efl/elm/elm_gengrid.rb +++ b/lib/efl/elm/elm_gengrid.rb @@ -15,35 +15,24 @@ module Efl constructor :elm_gengrid_add search_prefixes 'elm_gengrid_' # - def item_append itc, data, parent, flags, cb, cbdata - ElmObjectItem.new Native.elm_gengrid_item_append @ptr, itc, data, parent, flags, cb, cbdata + def item_append gic, data, cb, cbdata + ElmObjectItem.new Native.elm_gengrid_item_append @ptr, gic, data, cb, cbdata end # - def item_prepend itc, data, parent, flags, cb, cbdata - ElmObjectItem.new Native.elm_gengrid_item_append @ptr, itc, data, parent, flags, cb, cbdata + def item_prepend gic, data, cb, cbdata + ElmObjectItem.new Native.elm_gengrid_item_append @ptr, gic, data, cb, cbdata end # - def item_insert_before itc, data, parent, before, flags, cb, cbdata - ElmObjectItem.new Native.elm_gengrid_item_insert_before @ptr, itc, data, parent, before, flags, cb, cbdata + def item_insert_before gic, data, before, cb, cbdata + ElmObjectItem.new Native.elm_gengrid_item_insert_before @ptr, gic, data, before, cb, cbdata end # - def item_insert_after itc, data, parent, before, flags, cb, cbdata - ElmObjectItem.new Native.elm_gengrid_item_insert_after @ptr, itc, data, parent, before, flags, cb, cbdata + def item_insert_after gic, data, before, flags, cb, cbdata + ElmObjectItem.new Native.elm_gengrid_item_insert_after @ptr, gic, data, before, cb, cbdata end # - def item_sorted_insert itc, data, parent, flags, cmp, cb, cbdata - ElmObjectItem.new Native.elm_gengrid_item_sorted_insert @ptr, itc, data, parent, flags, cmp, cb, cbdata - end - # - def selected_item_get - ElmObjectItem.new Native.elm_gengrid_selected_item_get @ptr - end - alias :selected_item :selected_item_get - # - def at_xy_item_get x, y - @ri0 ||= FFI::MemoryPointer.new :int - i = ElmObjectItem.new ElmObjectItem.new Native.elm_gengrid_first_item_get @ptr, x, y, @ri0 - [ @ri0.read_int, i ] + def item_sorted_insert gic, data, cmp, cb, cbdata + ElmObjectItem.new Native.elm_gengrid_item_sorted_insert @ptr, gic, data, cmp, cb, cbdata end # def first_item_get @@ -66,10 +55,10 @@ module Efl end alias :item_prev :item_prev_get # - def item_parent_get it - ElmObjectItem.new Native.elm_gengrid_item_parent_get it + def selected_item_get + ElmObjectItem.new Native.elm_gengrid_selected_item_get @ptr end - alias :item_parent :item_parent_get + alias :selected_item :selected_item_get # end # diff --git a/lib/efl/elm/elm_genlist.rb b/lib/efl/elm/elm_genlist.rb index 38cca8b..ffc2fdb 100644 --- a/lib/efl/elm/elm_genlist.rb +++ b/lib/efl/elm/elm_genlist.rb @@ -9,7 +9,7 @@ module Efl # module Elm # - class ElmList < ElmObject + class ElmGenList < ElmObject # include Helper constructor :elm_genlist_add |