[Kde-bindings] Bug in ruby plasma_applet concerning drag and drop

Robert Riemann robert.riemann at physik.hu-berlin.de
Sat Feb 6 22:41:20 UTC 2010


Hi all,

just found a bug in /usr/share/kde4/apps/plasma_scriptengine_ruby/applet.rb
The handling of the drag and drop events seems to be broken.

error message:

/usr/share/kde4/apps/plasma_scriptengine_ruby/applet.rb:229: warning: 
Object#type is deprecated; use Object#class
/usr/share/kde4/apps/plasma_scriptengine_ruby/applet.rb:229:in 
`method_missing': undefined method `to_i' for 
Qt::GraphicsSceneDragDropEvent:Class (NoMethodError)
        /usr/share/kde4/apps/plasma_scriptengine_ruby/applet.rb:229:in 
`eventFilter'
        /usr/share/kde4/apps/plasma_scriptengine_ruby/applet.rb:229


Reproduction of the error:
extract attachment, cd in folder ruby-pastie-applett and execute 
plasmoidviewer. works in kde 4.4 rc3 from opensuse buildservice

Code was inspired (copied) from: http://websvn.kde.org/trunk/KDE/kdeplasma-
addons/applets/frame/frame.cpp?view=markup line 584


Greets Robert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ruby-pastie-applet.tar.gz
Type: application/x-compressed-tar
Size: 10240 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-bindings/attachments/20100206/61dfa941/attachment.tar.gz>


More information about the Kde-bindings mailing list