Sha256: 915018a96145f19c0ebf50a52bdf294df218137791c8770b558ccba96279ebd0

Contents?: true

Size: 488 Bytes

Versions: 1

Compression:

Stored size: 488 Bytes

Contents

module GirFFI
  module Overrides
    module Gtk

      def self.included(base)
	base.gir_ffi_builder.setup_function "init"
	base.extend ClassMethods
	base.class_eval do

	  class << self
	    alias init_without_auto_argv init
	    alias init init_with_auto_argv
	  end

	end
      end

      module ClassMethods

	def init_with_auto_argv
	  (my_len, my_args) = init_without_auto_argv ARGV.length + 1, [$0, *ARGV]
	  my_args.shift
	  ARGV.replace my_args
	end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
gir_ffi-0.0.4 lib/gir_ffi/overrides/gtk.rb