[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/multimedia/amarok/playground/src/context
From:       Leo Franchi <lfranchi () kde ! org>
Date:       2009-06-12 20:00:23
Message-ID: 1244836823.650539.3742.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 981115 by lfranchi:

add stub engine, make sample applet show currently playing info

 M  +9 -0      applets/jssample/contents/code/main.js  
 A             engines/jsengine (directory)  
 A             engines/jsengine/contents (directory)  
 A             engines/jsengine/contents/code (directory)  
 A             engines/jsengine/contents/code/main.js  
 A             engines/jsengine/metadata.desktop  


--- trunk/extragear/multimedia/amarok/playground/src/context/applets/jssample/contents/code/main.js \
#981114:981115 @@ -1,7 +1,16 @@
 plasmoid.drawStandardBackground = true;
 
+plasmoid.dataUpdate = function(a, b)
+{
+    print( "DOING SOMETHING" );
+    label.text = "Playing " + b.current[ "xesam:title" ] + " from " + b.current[ \
"xesam:author" ] + " on " + b.current[ "xesam:album" ]; +}
+
+
 layout = new LinearLayout( plasmoid );
 label = new Label();
 layout.addItem( label );
 
 label.text = "This is a Javascript Applet";
+
+plasmoid.dataEngine("amarok-current").connectSource( "current", plasmoid );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic