Diff of /cbrpager-maemo/branches/MAEMO_0_9_20/src/conf.c [r6] .. [r7] Maximize Restore

  Switch to side-by-side view

--- a/cbrpager-maemo/branches/MAEMO_0_9_20/src/conf.c
+++ b/cbrpager-maemo/branches/MAEMO_0_9_20/src/conf.c
@@ -29,6 +29,8 @@
   gint	 mods;
   guint	 accel;
 } key_assignment;
+
+#define DEFAULT_ZONE_SIZE 60
 
 #ifdef USE_HILDON
 key_assignment key_asg[] = {
@@ -148,6 +150,9 @@
   sprintf(path, "/%s/global/auto_rotate", prog_name);
   gconf_client_set_int(client, path, pref.auto_rotate, NULL);
 
+  sprintf(path, "/%s/global/zone_size", prog_name);
+  gconf_client_set_int(client, path, pref.zone_size, NULL);
+
   for (ka = 0; ka < nr_keys_assigned; ka++) {
     sprintf(path, "/%s/accel/%s_mods", prog_name, key_asg[ka].widget);
     gconf_client_set_int(client, path, key_asg[ka].mods, NULL);
@@ -231,6 +236,9 @@
 
   g_sprintf(path, "/%s/global/auto_rotate", prog_name);
   pref.auto_rotate = gconf_client_get_int_with_default(client, path, 0);
+
+  g_sprintf(path, "/%s/global/zone_size", prog_name);
+  pref.zone_size = gconf_client_get_int_with_default(client, path, DEFAULT_ZONE_SIZE);
 
   if (pref.dirmode == DIRM_FIXED)		// fixed startup directory
     strncpy(pref.lastbook, pref.fixeddir, sizeof(pref.lastbook));