lib/knj/ironruby-gtk2/gtk_treeview.rb in knjrbfw-0.0.8 vs lib/knj/ironruby-gtk2/gtk_treeview.rb in knjrbfw-0.0.9
- old
+ new
@@ -1,19 +1,19 @@
class Gtk::TreeView
- def selection
- if !@selection
- Gtk.takeob = @ob.selection
- @selection = Gtk::TreeSelection.new
- end
-
- return @selection
- end
-
- def model=(newmodel)
- @model = newmodel
- @ob.model = newmodel.ob
- end
-
- def model
- return @model
- end
+ def selection
+ if !@selection
+ Gtk.takeob = @ob.selection
+ @selection = Gtk::TreeSelection.new
+ end
+
+ return @selection
+ end
+
+ def model=(newmodel)
+ @model = newmodel
+ @ob.model = newmodel.ob
+ end
+
+ def model
+ return @model
+ end
end
\ No newline at end of file