[maemo-developers] Screenshot as loading screen on Maemo 5
From: Aniello Del Sorbo anidel at gmail.comDate: Sat Oct 17 13:58:34 EEST 2009
- Previous message: Screenshot as loading screen on Maemo 5
- Next message: Screenshot as loading screen on Maemo 5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
2009/10/17 Cornelius Hald <hald at icandy.de>: > On Tue, 2009-10-13 at 21:22 +0200, Cornelius Hald wrote: >> On Tue, 2009-10-13 at 18:45 +0100, Andrew Flegg wrote: >> > Faheem wrote: >> > > >> > > https://stage.maemo.org/viewcvs.cgi/projects/haf/trunk/hildon-control-panel/src/hcp-window.c?root=maemo&r1=19383&r2=19382&pathrev=19383 >> > >> > I can confirm that copying an existing entry from /home/user/.cache/launch/ to <dbus-name>.pvr will result in it being launched with that screenshot before fading in the actual window. >> >> Wow, you guys are great :) So it should be really straight forward to >> implement this in our own apps. I'll give it a try tomorrow. Also it >> looks like most stock apps are using it now. Notes, Sketch, Xterm, >> Calculator and more. > > Just a quick update: It is really enough to just call > hildon_gtk_window_take_screenshot() in your code. The next time you > start your application the screenshot will automatically be used. I > first thought you have to use maemo-launcher to make use of this > feature, but it also works without. > > Cheers! > Conny > My program doesn't ask anything when you close it, but it keeps automatically saving the document in a temporary file. Thus at every start it loads it up and you're back where you left. So I thought I would call the screenshot function at the very end, while closing down the program. It didn't work. It didn't save the screenshot of what was there. So I call it when I receive the expose event (like in the example) and it does work there. Why is that? I still have to investigate it, but I thought the window would be still available in my Quit function when called from the destroy event. Weird. -- anidel Sent from London, Eng, United Kingdom
- Previous message: Screenshot as loading screen on Maemo 5
- Next message: Screenshot as loading screen on Maemo 5
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]