diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2011-10-21 15:26:27 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2011-10-21 15:26:27 +0200 |
commit | 87848be5c9e523ec0f3b50ff33a6392c45a1ed59 (patch) | |
tree | 3656a11010d12f44688285b57fd499e40fb054b1 /lib | |
parent | ae8f4e3acb09b2c5bb2052a7614c42985a357c06 (diff) | |
download | ffi-efl-87848be5c9e523ec0f3b50ff33a6392c45a1ed59.zip ffi-efl-87848be5c9e523ec0f3b50ff33a6392c45a1ed59.tar.gz |
elementary: elm_init use __FILE__ as only argument if none given
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efl/elementary.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/efl/elementary.rb b/lib/efl/elementary.rb index aa90eaf..db6f2ef 100644 --- a/lib/efl/elementary.rb +++ b/lib/efl/elementary.rb @@ -45,7 +45,7 @@ module Efl class << self def init *args a = args.select { |e| e.is_a? String } - return Native.elm_init 0, FFI::MemoryPointer::NULL if a.length==0 + a.insert 0, __FILE__ if a.length==0 ptr = FFI::MemoryPointer.new :pointer, a.length a.each_with_index do |s,i| ptr[i].write_pointer FFI::MemoryPointer.from_string(s) |