aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2004-02-25 07:34:21 +0800
committerJP Rosevear <jpr@src.gnome.org>2004-02-25 07:34:21 +0800
commit407045be4927e6e22c2f204f4a242ae1260e42ba (patch)
tree2171a7cd3a2f894574dfbe8995bfda3d66097404 /calendar/gui
parentbdf73f3dfaafe091c2a6453dc53d25ce1c34bc50 (diff)
downloadgsoc2013-evolution-407045be4927e6e22c2f204f4a242ae1260e42ba.tar.gz
gsoc2013-evolution-407045be4927e6e22c2f204f4a242ae1260e42ba.tar.zst
gsoc2013-evolution-407045be4927e6e22c2f204f4a242ae1260e42ba.zip
fix float type pane position keys (we migrated these improperly in the
2004-02-24 JP Rosevear <jpr@ximian.com> * gui/migration.c (migrate_calendars): fix float type pane position keys (we migrated these improperly in the past), just use the default value Fixes #53087 svn path=/trunk/; revision=24860
Diffstat (limited to 'calendar/gui')
-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;