aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/migration.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/migration.c')
-rw-r--r--calendar/gui/migration.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/calendar/gui/migration.c b/calendar/gui/migration.c
index b735460d2e..a960e10e0a 100644
--- a/calendar/gui/migration.c
+++ b/calendar/gui/migration.c
@@ -33,6 +33,7 @@
#include <libecal/e-cal.h>
#include <e-util/e-bconf-map.h>
#include <e-util/e-folder-map.h>
+#include "calendar-config-keys.h"
#include "migration.h"
static e_gconf_map_t calendar_display_map[] = {
@@ -602,6 +603,30 @@ migrate_calendars (CalendarComponent *component, int major, int minor, int revis
e_source_list_sync (calendar_component_peek_source_list (component), NULL);
}
+ if (minor == 5 && revision < 5) {
+ GConfClient *gconf;
+ GConfValue *gconf_val;
+ int i;
+ const char *keys[] = {
+ CALENDAR_CONFIG_HPANE_POS,
+ CALENDAR_CONFIG_VPANE_POS,
+ CALENDAR_CONFIG_MONTH_HPANE_POS,
+ CALENDAR_CONFIG_MONTH_VPANE_POS,
+ NULL
+ };
+
+ gconf = gconf_client_get_default ();
+
+ for (i = 0; keys[i]; i++) {
+ gconf_val = gconf_client_get (gconf, keys[i], NULL);
+ if (gconf_val->type != GCONF_VALUE_INT)
+ gconf_client_unset (gconf, keys[i], NULL);
+ gconf_value_free (gconf_val);
+ }
+
+ g_object_unref (gconf);
+ }
+
}
return retval;