2009-01-06 04:57:03 +01:00
|
|
|
svg = new PlasmaSvg('tiger');
|
2009-01-06 04:55:42 +01:00
|
|
|
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 );
|
|
|
|
}
|