class Gtk::ListStore

Public Class Methods

new(n_columns, *types) click to toggle source
# File lib/gtk/list_store.rb, line 9
def initialize(n_columns, *types)
  @native = Lib.gtk_list_store_new(n_columns,
    *(types.map{ |type| [:int,GType[type]] }.flatten)
  )
end

Public Instance Methods

append(iter) click to toggle source
# File lib/gtk/list_store.rb, line 14
def append iter
  iter.owner = self
  Lib.gtk_list_store_append(native,iter.to_ptr)
end
to_tree_model() click to toggle source

def set *args

puts "SET #{args.inspect}"

end

# File lib/gtk/list_store.rb, line 21
def to_tree_model
  Gtk::TreeModel.new(native)
end