Sha256: 0e7457e7d943f09b33630fc181c42fcbd62b8e12b38ea3c78f0a3aa27eff8cfe

Contents?: true

Size: 350 Bytes

Versions: 4

Compression:

Stored size: 350 Bytes

Contents

Gtk.events["Gtk"]["Button"] = {
	"clicked" => "clicked"
}

class Gtk::Button
	def initialize(title = "")
		if Gtk.takeob
			@ob = Gtk.takeob
			Gtk.takeob = nil
		else
			splitted = self.class.to_s.split("::")
			@ob = RealGtk.const_get(splitted.last).new(title)
		end
		
		if !@ob
			raise "Object was not spawned: #{self.class.to_s}"
		end
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
knjrbfw-0.0.8 lib/knj/ironruby-gtk2/button.rb
knjrbfw-0.0.7 lib/knj/ironruby-gtk2/button.rb
knjrbfw-0.0.4 lib/knj/ironruby-gtk2/button.rb
knjrbfw-0.0.3 lib/knj/ironruby-gtk2/button.rb