aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-migrate.c
diff options
context:
space:
mode:
authorRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 23:23:54 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-10-13 23:23:54 +0800
commit2dd62937f02126c75c401fce50c6444a376e2f9f (patch)
treed35789d67a17743534ec2fdb123a3a23e66f045f /shell/e-shell-migrate.c
parent7caabe92304734e3bfc60bdf2e9d36915367e5f0 (diff)
downloadgsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.tar
gsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.tar.gz
gsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.tar.bz2
gsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.tar.lz
gsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.tar.xz
gsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.tar.zst
gsoc2013-evolution-2dd62937f02126c75c401fce50c6444a376e2f9f.zip
Build fixes
Diffstat (limited to 'shell/e-shell-migrate.c')
-rw-r--r--shell/e-shell-migrate.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/e-shell-migrate.c b/shell/e-shell-migrate.c
index e694ec29fd..1931011516 100644
--- a/shell/e-shell-migrate.c
+++ b/shell/e-shell-migrate.c
@@ -900,6 +900,7 @@ e_shell_migrate_attempt (EShell *shell)
{
ESEvent *ese;
GSettings *settings;
+ GConfClient *client;
const gchar *key;
gint major, minor, micro;
gint last_major, last_minor, last_micro;
@@ -935,10 +936,12 @@ e_shell_migrate_attempt (EShell *shell)
/* The 2.32.x (except of 2.32.2) lefts duplicate On This Computer/Personal sources,
* thus clean the mess up */
+ client = gconf_client_get_default ();
merge_duplicate_local_sources (client, "/apps/evolution/addressbook/sources");
merge_duplicate_local_sources (client, "/apps/evolution/calendar/sources");
merge_duplicate_local_sources (client, "/apps/evolution/tasks/sources");
merge_duplicate_local_sources (client, "/apps/evolution/memos/sources");
+ g_object_unref (client);
/* Record a successful migration. */
string = g_strdup_printf (
@@ -949,7 +952,7 @@ e_shell_migrate_attempt (EShell *shell)
migrated = TRUE;
/* Try to retrieve the last migrated version from GSettings. */
- string = g_settings_get_string (client, "last-upgraded-version");
+ string = g_settings_get_string (settings, "last-upgraded-version");
if (migrated || string == NULL || sscanf (string, "%d.%d.%d",
&last_major, &last_minor, &last_micro) != 3) {
last_major = major;
@@ -960,7 +963,7 @@ e_shell_migrate_attempt (EShell *shell)
string = g_strdup_printf (
"%d.%d.%d", last_major, last_minor, last_micro);
- g_settings_set_string (client, "last-upgraded-version", string);
+ g_settings_set_string (settings, "last-upgraded-version", string);
g_free (string);
g_object_unref (settings);