diff options
author | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-20 00:24:07 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-10-20 00:24:07 +0800 |
commit | 3b32549c69267295a9a7b482e4a6ca2db9e6c73f (patch) | |
tree | c6ebb240b7a676e2d2f233e84d9f3d77f09b07ba /mail/mail-vfolder.c | |
parent | b9eebfcb4f371ce3549264a97983b5f9cb6493df (diff) | |
download | gsoc2013-evolution-3b32549c69267295a9a7b482e4a6ca2db9e6c73f.tar.gz gsoc2013-evolution-3b32549c69267295a9a7b482e4a6ca2db9e6c73f.tar.zst gsoc2013-evolution-3b32549c69267295a9a7b482e4a6ca2db9e6c73f.zip |
And yet more GSettings migration on the mail component
Diffstat (limited to 'mail/mail-vfolder.c')
-rw-r--r-- | mail/mail-vfolder.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/mail-vfolder.c b/mail/mail-vfolder.c index c1e451d04c..f2f9219b89 100644 --- a/mail/mail-vfolder.c +++ b/mail/mail-vfolder.c @@ -1096,7 +1096,7 @@ vfolder_load_storage (EMailBackend *backend) MailFolderCache *folder_cache; EMailSession *session; gchar *xmlfile; - GConfClient *client; + GSettings *settings; g_return_if_fail (E_IS_MAIL_BACKEND (backend)); @@ -1177,11 +1177,11 @@ vfolder_load_storage (EMailBackend *backend) g_free (storeuri); /* reenable the feature if required */ - client = gconf_client_get_default (); - key = "/apps/evolution/mail/display/enable_vfolders"; - if (!gconf_client_get_bool (client, key, NULL)) - gconf_client_set_bool (client, key, TRUE, NULL); - g_object_unref (client); + settings = g_settings_new ("org.gnome.evolution.mail"); + key = "enable-vfolders"; + if (!g_settings_get_boolean (settings, key)) + g_settings_set_boolean (settings, key, TRUE); + g_object_unref (settings); folder_cache = e_mail_session_get_folder_cache (session); |