This Patch works for all cases. Suppose current wallpaper is virus. If User has images in Picture frame and if he likes to set the Picture frame<br>Image as wallpaper image. He can do so. &quot;set wallpaper Image&quot; sets the current image as wallpaper image and Wallpaper Plugin will be set to Image.<br>
<br><div class="gmail_quote">On Wed, Jan 26, 2011 at 10:13 PM, todd rme <span dir="ltr">&lt;<a href="mailto:toddrme2178@gmail.com">toddrme2178@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="gmail_quote"><div><div></div><div class="h5">On Wed, Jan 26, 2011 at 11:20 AM, Sinny Kumari <span dir="ltr">&lt;<a href="mailto:ksinny@gmail.com" target="_blank">ksinny@gmail.com</a>&gt;</span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div><div></div><div class="h5">





 <div>
  <div style="font-family: Verdana,Arial,Helvetica,Sans-Serif;">
   <table style="border: 1px solid rgb(201, 195, 153);" width="100%" bgcolor="#f9f3c9" cellpadding="8">
    <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 solid black;" width="100%" bgcolor="#fefadf" cellpadding="8" cellspacing="0">
 <tbody><tr>
  <td>

<div>Review request for Plasma.</div>
<div>By Sinny Kumari.</div>





<h1 style="color: rgb(87, 80, 18); font-size: 10pt; margin-top: 1.5em;">Description </h1>
<table style="border: 1px solid rgb(184, 181, 160);" width="100%" bgcolor="#ffffff" cellpadding="10" cellspacing="0">
 <tbody><tr>
  <td>
   <pre style="margin: 0pt; padding: 0pt; white-space: 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 &quot;Set Wallpaper Image&quot; feature in Picture Frame. If the User right clicks on Picture Frame, there will be an option &quot;Set Wallpaper Image&quot;. This Option will set the current Image Of Picture
Frame as Wallpaper Image.</pre>
  </td>
 </tr>
</tbody></table>


<h1 style="color: rgb(87, 80, 18); font-size: 10pt; margin-top: 1.5em;">Testing </h1>
<table style="border: 1px solid rgb(184, 181, 160);" width="100%" bgcolor="#ffffff" cellpadding="10" cellspacing="0">
 <tbody><tr>
  <td>
   <pre style="margin: 0pt; padding: 0pt; white-space: 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: rgb(87, 80, 18); font-size: 10pt; margin-top: 1.5em;">Diffs </h1>
<ul style="margin-left: 3em; padding-left: 0pt;">

 <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></div></div>_______________________________________________<br>
Plasma-devel mailing list<br>
<a href="mailto:Plasma-devel@kde.org" target="_blank">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&#39;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><font color="#888888"><br>-Todd<br>

</font><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 clear="all"><br>-- <br><a href="http://www.sinny.in" target="_blank">http://www.sinny.in</a><br>