<a href="http://paste.kde.org/502880/">New Link</a><br>
<div><br></div><div>The old one got deleted..</div><div><br></div><blockquote class="gmail_quote" style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<pre style="white-space:pre-wrap">I am trying to implement wallpaper plugin for digikam as SoK project. Using
an applet I am able to change the wallpaper but not otherwise as I need the
current desktop containment object.
I am trying to obtain that by creating a containment object and restoring
from the config file. But the isContainment() is set to false in this case.
I also tried using the static load function from Plasma::Applet, but
because the desktop plugin has both Plasma/Applet and Plasma/Containment,
the isContainment() is set to false this way too.
Currently I have a Wallpaper object loaded this way and changed the Url and
saved it back to the file. But as update signals are protected I can't
change the wallpaper in realtime. If I can get the current containment
object, I can use the Plasma::Containment::setWallpaper() function after
saving the new config and it will update.
Pastebin <<a href="http://paste.kde.org/502064/">http://paste.kde.org/502064/</a>>
Is there another way to change the wallpaper from an application ?</pre></blockquote>