I was thinking that there should be a way to remove the existing screenshot from a postinst script when upgrading to a new version of the app.<br>I mean, some way more reliable than `rm /home/user/.cache/launch/<service name>.pvr`.<br>
This could be useful if the new version has a substantially different UI than before to not confuse previous users.<br><br>Luca Donaggio<br><br><div class="gmail_quote">2009/10/23 Claudio Saavedra <span dir="ltr"><<a href="mailto:csaavedra@igalia.com">csaavedra@igalia.com</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">El vie, 23-10-2009 a las 17:25 +0300, Kimmo Hämäläinen escribió:<br>
<div class="im">> On Fri, 2009-10-23 at 14:46 +0200, ext Claudio Saavedra wrote:<br>
> > El vie, 23-10-2009 a las 15:37 +0300, Kimmo Hämäläinen escribió:<br>
> ...<br>
> > Let's make a deal, you fix it in the desktop and I fix the documentation<br>
> > of the method :)<br>
><br>
> Fixed in hildon-desktop git master now :)<br>
<br>
</div>Committing this to hildon master now :)<br>
<br>
commit 7a9bcd71fe0399604d2bec10bc024290d8d1a9b9<br>
Author: Claudio Saavedra <<a href="mailto:csaavedra@igalia.com">csaavedra@igalia.com</a>><br>
Date: Fri Oct 23 18:02:53 2009 +0300<br>
<br>
Improve the documentation for hildon_gtk_window_take_screenshot()<br>
<br>
Mention the fact that it's a Maemo 5 feature, what's the purpose<br>
of the screenshot, and how to use it.<br>
<br>
diff --git a/hildon/hildon-gtk.c b/hildon/hildon-gtk.c<br>
index f67f830..ee391e4 100644<br>
--- a/hildon/hildon-gtk.c<br>
+++ b/hildon/hildon-gtk.c<br>
@@ -456,8 +456,23 @@ hildon_gtk_window_enable_zoom_keys<br>
(GtkWindow *window,<br>
* @window: a #GtkWindow<br>
* @take: %TRUE to take a screenshot, %FALSE to destroy the existing<br>
one.<br>
*<br>
- * Tells the window manager to take a screenshot of @window, or to<br>
- * destroy the existing one. @window must be mapped.<br>
+ * Tells the window manager to create a screenshot of @window and save<br>
+ * it, or to destroy the existing one. If @take is %TRUE but the<br>
+ * screenshot is already available, the window manager will not create<br>
+ * it again.<br>
+ *<br>
+ * You should only call this method when @window is already mapped.<br>
+ *<br>
+ * In Maemo 5 this screenshot, if existent, will be used by the window<br>
+ * manager in subsequent launches of the application that created<br>
+ * it. The window manager will remove this screenshot automatically<br>
+ * whenever the theme, locale, or the time changes; also when a backup<br>
+ * is restored. If your application changes its appearance between<br>
+ * runs and you want to force the existent screenshot to be removed,<br>
+ * set @take to %FALSE.<br>
+ *<br>
+ * Since: 2.0<br>
+ *<br>
**/<br>
<div class="im"> void<br>
hildon_gtk_window_take_screenshot (GtkWindow *window,<br>
<br>
<br>
<br>
</div><div><div></div><div class="h5">_______________________________________________<br>
maemo-developers mailing list<br>
<a href="mailto:maemo-developers@maemo.org">maemo-developers@maemo.org</a><br>
<a href="https://lists.maemo.org/mailman/listinfo/maemo-developers" target="_blank">https://lists.maemo.org/mailman/listinfo/maemo-developers</a><br>
</div></div></blockquote></div><br>