lib/knj/ironruby-gtk2/gtk_treeiter.rb in knjrbfw-0.0.8 vs lib/knj/ironruby-gtk2/gtk_treeiter.rb in knjrbfw-0.0.9

- old
+ new

@@ -1,24 +1,24 @@ class Gtk::TreeIter - def initialize(*paras) - if Gtk.takeob - print "TreeIter from takeob.\n" - @ob = Gtk.takeob - Gtk.takeob = nil - else - print "TreeIter from constructor.\n" - @ob = RealGtk::TreeIter.new(*paras) - end - end - - def liststore=(newliststore) - @liststore = newliststore - end - - def []=(key, value) - return @liststore.ob.method(:set_value).overload(RealGtk::TreeIter, Fixnum, System::String).call(@ob, key, value) - end - - def [](key) - return @liststore.ob.get_value(@ob, key) - end + def initialize(*paras) + if Gtk.takeob + print "TreeIter from takeob.\n" + @ob = Gtk.takeob + Gtk.takeob = nil + else + print "TreeIter from constructor.\n" + @ob = RealGtk::TreeIter.new(*paras) + end + end + + def liststore=(newliststore) + @liststore = newliststore + end + + def []=(key, value) + return @liststore.ob.method(:set_value).overload(RealGtk::TreeIter, Fixnum, System::String).call(@ob, key, value) + end + + def [](key) + return @liststore.ob.get_value(@ob, key) + end end \ No newline at end of file