<div class="gmail_quote">On Wed, Jan 26, 2011 at 11:20 AM, Sinny Kumari <span dir="ltr"><<a href="mailto:ksinny@gmail.com">ksinny@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div>
<div style="font-family:Verdana, Arial, Helvetica, Sans-Serif">
<table style="border:1px #c9c399 solid" bgcolor="#f9f3c9" cellpadding="8" width="100%">
<tbody><tr>
<td>
This is an automatically generated e-mail. To reply, visit:
<a href="http://svn.reviewboard.kde.org/r/6416/" target="_blank">http://svn.reviewboard.kde.org/r/6416/</a>
</td>
</tr>
</tbody></table>
<br>
<table style="background-repeat:repeat-x;border:1px black solid" bgcolor="#fefadf" cellpadding="8" cellspacing="0" width="100%">
<tbody><tr>
<td>
<div>Review request for Plasma.</div>
<div>By Sinny Kumari.</div>
<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Description </h1>
<table style="border:1px solid #b8b5a0" bgcolor="#ffffff" cellpadding="10" cellspacing="0" width="100%">
<tbody><tr>
<td>
<pre style="margin:0;padding:0;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">Including this patch and other two (<a href="http://svn.reviewboard.kde.org/r/6375/" target="_blank">http://svn.reviewboard.kde.org/r/6375/</a> , <a href="http://reviewboard.kde.org/r/6391/" target="_blank">http://reviewboard.kde.org/r/6391/</a> ) , It adds "Set Wallpaper Image" feature in Picture Frame. If the User right clicks on Picture Frame, there will be an option "Set Wallpaper Image". This Option will set the current Image Of Picture
Frame as Wallpaper Image.</pre>
</td>
</tr>
</tbody></table>
<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Testing </h1>
<table style="border:1px solid #b8b5a0" bgcolor="#ffffff" cellpadding="10" cellspacing="0" width="100%">
<tbody><tr>
<td>
<pre style="margin:0;padding:0;white-space:pre-wrap;white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;word-wrap:break-word">Setting Picture Frame Image as wallpaper Image in all cases. Added QTimer in method Frame::setImageAsWallpaper() in Order to work properly in case of Wallpaper other than Image and Slideshow. If there is better solution than using QTimer, please suggest :)</pre>
</td>
</tr>
</tbody></table>
<h1 style="color:#575012;font-size:10pt;margin-top:1.5em">Diffs </h1>
<ul style="margin-left:3em;padding-left:0">
<li>trunk/KDE/kdeplasma-addons/applets/frame/frame.h <span style="color:grey">(1216449)</span></li>
<li>trunk/KDE/kdeplasma-addons/applets/frame/frame.cpp <span style="color:grey">(1216449)</span></li>
</ul>
<p><a href="http://svn.reviewboard.kde.org/r/6416/diff/" style="margin-left:3em" target="_blank">View Diff</a></p>
</td>
</tr>
</tbody></table>
</div>
</div>
<br>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org">Plasma-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/plasma-devel" target="_blank">https://mail.kde.org/mailman/listinfo/plasma-devel</a><br>
<br></blockquote></div><br><br>I see one issue with this approach: it hard-codes how to deal with different plugins. What happens to the weather wallpaper? What happens to wallpaper clock or day/night wallpaper? What if someone writes their own version of the slideshow plugin? Is someone going to rewrite this every time a new plugin is developed?<br>
<br>Might it be a better approach to have some general API for setting images to a wallpaper? The plugin would set up its own method of dealing with the pictures sent to it (which could include ignoring it). The the default plugin and virus plugin would just set the image, the slideshow plugin would add it to the list, the weather plugin would set it to the current weather condition, the day/night and clock plugins would set it to the current time.<br>
<br>As a fall-back, if the plugin does not support the API, plasma would change to the normal wallpaper image and use the image there. So plugins that don't use images, like marble and mandelbrot, could just not implement that API, in which case selecting an image would change to the default plugin and then set the image to that.<br>
<br>This also has the benefit that other widgets would also be able to hook into this and change the wallpaper without much work and without worrying about what plugin is being used.<br><br>-Todd<br>