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

- old
+ new

@@ -1,16 +1,16 @@ Gtk.events["Gtk"]["TreeSelection"] = { - "changed" => "changed" + "changed" => "changed" } class Gtk::TreeSelection - def selected_rows - ret = [] - sel_rows = @ob.GetSelectedRows - sel_rows.each do |tpath| - Gtk.takeob = tpath - ret << Gtk::TreePath.new - end - - return ret - end + def selected_rows + ret = [] + sel_rows = @ob.GetSelectedRows + sel_rows.each do |tpath| + Gtk.takeob = tpath + ret << Gtk::TreePath.new + end + + return ret + end end \ No newline at end of file