plasma-framework/scriptengines/javascript/tests/tiger/contents/code/main
Aaron J. Seigo 71789306b7 ok, this time _really_ move it over. svn is sometimes a little too forgiving / sloppy :(
svn path=/trunk/KDE/kdebase/runtime/; revision=967245
2009-05-13 00:55:25 +00:00

15 lines
317 B
Plaintext

svg = new PlasmaSvg('tiger');
plasmoid.setAction("myAction", "Select Me!", "plasma");
plasmoid.action_myAction = function()
{
print("myAction triggered!");
plasmoid.removeAction("myAction");
}
plasmoid.paintInterface = function(painter)
{
svg.resize( plasmoid.size() );
svg.paint( painter, 0,0 );
}