[gnome-games/gnome-2-28] aisleriot: maemo: Flush settings to disk when backgrounded
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-games/gnome-2-28] aisleriot: maemo: Flush settings to disk when backgrounded
- Date: Sat, 28 Nov 2009 13:51:13 +0000 (UTC)
commit d5b6c4a77497f7b8d95c169c2bbe278be1794592
Author: Christian Persch <chpe gnome org>
Date: Fri Nov 27 20:01:42 2009 +0100
aisleriot: maemo: Flush settings to disk when backgrounded
When the app is backgrounded, it's necessary to save the settings to
disk so they're not lost if the app is killed.
Bug #574184.
(cherry picked from commit c0423c2e3d87c3a444a76a699b9cea3de93697cb)
aisleriot/sol.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/aisleriot/sol.c b/aisleriot/sol.c
index 8fd49bf..dda7e36 100644
--- a/aisleriot/sol.c
+++ b/aisleriot/sol.c
@@ -195,6 +195,9 @@ sync_is_topmost_cb (HildonProgram *program,
if (hildon_program_get_is_topmost (program)) {
hildon_program_set_can_hibernate (program, FALSE);
} else {
+ /* Ensure settings are saved to disk */
+ games_conf_save ();
+
/* FIXMEchpe: save state here */
hildon_program_set_can_hibernate (program, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]