[Kde-bindings] branches/KDE/4.4/kdebindings/ruby/korundum

Richard Dale Richard_Dale at tipitina.demon.co.uk
Fri Jan 15 18:00:48 UTC 2010


SVN commit 1075241 by rdale:

* Nested classes such as KEncodingFileDialog::Result weren't being 
correctly converted to their ruby form with a KDE:: namespace. Thanks
to Stefano Crocco for reporting the bug

CCMAIL: kde-bindings at kde.org


 M  +5 -0      ChangeLog  
 M  +4 -1      src/lib/KDE/korundum4.rb  


--- branches/KDE/4.4/kdebindings/ruby/korundum/ChangeLog #1075240:1075241
@@ -1,3 +1,8 @@
+2010-01-15  Richard Dale  <richard.j.dale at gmail.com>
+    * Nested classes such as KEncodingFileDialog::Result weren't being 
+    correctly converted to their ruby form with a KDE:: namespace. Thanks
+    to Stefano Crocco for reporting the bug
+
 2009-09-22  Richard Dale  <richard.j.dale at gmail.com>
     * Fix broken KDE::ConfigGroup.readEntry method. Thanks to Paulo Capriotti
       for reporting the bug
--- branches/KDE/4.4/kdebindings/ruby/korundum/src/lib/KDE/korundum4.rb #1075240:1075241
@@ -571,7 +571,10 @@
 					now = classname.sub(/KCore/,'KDE::')
 				elsif classname =~ /^(KConfigSkeleton|KWin|KDateTime|KTimeZone|KSettings)::/
 					now = classname.sub(/^K?(?=[A-Z])/,'KDE::')
-				elsif classname =~ /^K/ && classname !~ /::/
+                elsif classname =~ /^(KIO|KParts|KNS|KNS3|KWallet|KAuth|KSettings)::/
+                    now = classname
+                elsif classname =~ /^K/
+#                elsif classname =~ /^K/ && classname !~ /::/
 					now = classname.sub(/(^K)/, 'KDE::')
 				end
 				now



More information about the Kde-bindings mailing list