From 87848be5c9e523ec0f3b50ff33a6392c45a1ed59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Fri, 21 Oct 2011 15:26:27 +0200 Subject: elementary: elm_init use __FILE__ as only argument if none given --- lib/efl/elementary.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit v1.1-2-g2b99