Wallpaper plugins
Petri Damstén
petri.damsten at gmail.com
Mon Aug 25 11:34:13 CEST 2008
On Saturday 23 August 2008 18:51:12 Aaron J. Seigo wrote:
> KConfigGroup oldConfig = old->config();
> oldConfig->copyTo(c->config());
>
> this *should* bring over all the configurations: applets, wallpapers,
> everything. then we can call restore on the new containment with it's own
> config object ..
Now that applet configurations are also copied restore also restores applets
so on containment change we get duplicate of every applet. Deleting applet
settings helps, but I'm not sure if it's pretty.
Index: view.cpp
===================================================================
--- view.cpp (revision 852024)
+++ view.cpp (working copy)
@@ -258,6 +258,8 @@
oldConfig.copyTo(&newConfig);
// load the configuration of the old containment into the new one
+ KConfigGroup applets(&newConfig, "Applets");
+ applets.deleteGroup(); // delete applet settings so they don't get
restored
c->restore(newConfig);
// move the applets from the old to the new containment
One thing left is that I think layout of the Default Desktop moves applets to
left corner when changing containment since it does not know we are
'restoring'.
Petri
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/plasma-devel/attachments/20080825/73ba856d/attachment.sig
More information about the Plasma-devel
mailing list