[Kde-bindings] branches/KDE/3.5/kdebindings/korundum

Richard Dale Richard_Dale at tipitina.demon.co.uk
Mon Feb 19 18:20:28 UTC 2007


SVN commit 635286 by rdale:

* Fixed a bug where the sort method of KDE::ListView and KDE::ListViewItem
  was no longer working, as the classes are 'Enumerable' and ruby was
  calling the ruby sort method instead. Thanks to kelko for reporting it
  on #kde-ruby.

CCMAIL: kde-bindings at kde.org



 M  +7 -0      ChangeLog  
 M  +8 -0      rubylib/korundum/lib/KDE/korundum.rb  


--- branches/KDE/3.5/kdebindings/korundum/ChangeLog #635285:635286
@@ -1,3 +1,10 @@
+2007-02-19  Richard Dale  <rdale at foton.es>
+
+	* Fixed a bug where the sort method of KDE::ListView and KDE::ListViewItem
+	  was no longer working, as the classes are 'Enumerable' and ruby was
+	  calling the ruby sort method instead. Thanks to kelko for reporting it
+	  on #kde-ruby.
+
 2006-11-21  Richard Dale  <rdale at foton.es>
 
 	* Made KDE::ListView, KDE::ListViewItem Enumerable with implementations
--- branches/KDE/3.5/kdebindings/korundum/rubylib/korundum/lib/KDE/korundum.rb #635285:635286
@@ -608,6 +608,10 @@
 				it += 1
 			end
 		end
+
+		def sort(*args)
+			method_missing(:sort, *args)
+		end
 	end
 
 	class ListViewItem
@@ -621,6 +625,10 @@
 			end
 		end
 
+		def sort(*args)
+			method_missing(:sort, *args)
+		end
+
 		def inspect
 			str = super
 			str.sub!(/>$/, "")



More information about the Kde-bindings mailing list