[maemo-developers] Screenshot as loading screen on Maemo 5
From: Cornelius Hald hald at icandy.deDate: Sat Oct 17 14:03:59 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 ]
On Sat, 2009-10-17 at 11:58 +0100, Aniello Del Sorbo wrote: > > 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. I'm also calling it when quitting the application. I'm using the 'delete-event' on my main window. There I call it just before gtk_main_quit(). It's working for me... Cheers! Conny
- 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 ]