Sha256: 77192e7b54fa278373da03532f5e20b51eecad459a498b4861c7e51c66b63072

Contents?: true

Size: 381 Bytes

Versions: 101

Compression:

Stored size: 381 Bytes

Contents

class Gtk::Label
  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 label=(newlabel)
    @ob.label_prop = newlabel
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.49 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.48 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.47 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.46 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.45 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.44 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.43 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.42 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.41 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.40 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.39 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.38 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.37 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.36 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.35 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.34 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.33 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.32 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.31 lib/knj/ironruby-gtk2/label.rb
knjrbfw-0.0.30 lib/knj/ironruby-gtk2/label.rb