Sha256: 2ac57a60a00ac7234bbf3da779872a93d232bde0f52b087a8b2d4fbf420c6067
Contents?: true
Size: 397 Bytes
Versions: 4
Compression:
Stored size: 397 Bytes
Contents
Gtk.events["Gtk"]["Window"] = { "destroy" => "destroyed" } class Gtk::Window 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 def add(widget) @ob.add(widget.ob) end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
knjrbfw-0.0.8 | lib/knj/ironruby-gtk2/window.rb |
knjrbfw-0.0.7 | lib/knj/ironruby-gtk2/window.rb |
knjrbfw-0.0.4 | lib/knj/ironruby-gtk2/window.rb |
knjrbfw-0.0.3 | lib/knj/ironruby-gtk2/window.rb |