Sha256: 7b787e7d08015679d07b0cfe132c807f8c6b17c0abb2195fb9e3b4ca241167b1

Contents?: true

Size: 839 Bytes

Versions: 101

Compression:

Stored size: 839 Bytes

Contents

class Gtk::TreeViewColumn
  def initialize(title, renderer, *paras)
    @title = title
    @renderer = renderer
    
    if Gtk.takeob
      @ob = Gtk.takeob
      if !@ob
        raise "Gtk.takeob was not set correctly: " + @ob.class.to_s
      end
      
      Gtk.takeob = nil
    else
      splitted = self.class.to_s.split("::")
      realclass = "Real#{splitted.first}"
      classob = Kernel.const_get(realclass).const_get(splitted.last)
      
      if !classob
        raise "Class does not exist: " + realclass + "::" + splitted.last
      end
      
      @ob = classob.new
      
      if !@ob
        raise "Object was not spawned: #{self.class.to_s}, #{@ob.class.to_s}, #{realclass}::#{splitted.last}"
      end
      
      @ob.pack_start(renderer.ob, true)
      #@ob.add_attribute(renderer.ob, "text", 0)
    end
  end
end

Version data entries

101 entries across 101 versions & 1 rubygems

Version Path
knjrbfw-0.0.94 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.93 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.92 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.91 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.90 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.89 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.88 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.87 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.86 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.85 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.84 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.83 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.82 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.81 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.80 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.79 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.78 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.77 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.75 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb
knjrbfw-0.0.74 lib/knj/ironruby-gtk2/gtk_treeviewcolumn.rb