aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-08-13 02:16:04 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-13 02:16:04 +0800
commitcfc8ef4c6ca14603c9ea8dd8429e8297e9c51980 (patch)
tree1624757b388826972c4fc5a47a23e112a02ce203 /shell
parent6be2668e483cfc7a2e75ae2efcd9675388d08601 (diff)
downloadgsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.gz
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.bz2
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.lz
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.xz
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.tar.zst
gsoc2013-evolution-cfc8ef4c6ca14603c9ea8dd8429e8297e9c51980.zip
Adapt to CamelService API changes.
camel_service_get_settings() is now camel_service_ref_settings() and it returns a new CamelSettings reference which the caller must release with g_object_unref().
Diffstat (limited to 'shell')
-rw-r--r--shell/e-convert-local-mail.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/shell/e-convert-local-mail.c b/shell/e-convert-local-mail.c
index 16736c95c4..8a726f8a99 100644
--- a/shell/e-convert-local-mail.c
+++ b/shell/e-convert-local-mail.c
@@ -241,12 +241,15 @@ migrate_mbox_to_maildir (EShell *shell,
camel_service_set_settings (mbox_service, settings);
- settings = camel_service_get_settings (maildir_service);
+ settings = camel_service_ref_settings (maildir_service);
+
path = g_build_filename (data_dir, "local", NULL);
g_object_set (settings, "path", path, NULL);
g_mkdir (path, 0700);
g_free (path);
+ g_object_unref (settings);
+
ms.mail_store = CAMEL_STORE (mbox_service);
ms.maildir_store = CAMEL_STORE (maildir_service);
ms.session = session;