Plasma Default Layout Scripting

Aaron J. Seigo aseigo at kde.org
Mon Jan 18 22:20:31 CET 2010


On January 18, 2010, Aaron J. Seigo wrote:
> >   systray = panel.addWidget("systemtray");
> >   //TODO how to do  sysTray->action("add default applets")  ?
> 
> you would have to write the appropriate configuration values for it. this
> is widget specific, obviously. there are some problems in doing this with
> the system tray to set the applets given how it does so currently. let me
> work on this a bit (and backport the results to the 4.4 branch) and get
> back to you.

ok, that's done. :)

so, basically you can do something like this:

systray.currentConfigGroup = new Array("Applets", "1)
systray.writeConfig("plugin", "<name of widget you want to appear there>")

huzzah.

-- 
Aaron J. Seigo
humru othro a kohnu se
GPG Fingerprint: 8B8B 2209 0C6F 7C47 B1EA  EE75 D6B7 2EB1 A7F1 DB43

KDE core developer sponsored by Qt Development Frameworks


More information about the Plasma-devel mailing list