aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-properties.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-10-18 05:19:13 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-10-19 00:32:37 +0800
commit22ef5aa7e61bcea10169153932f100a0954942da (patch)
tree18e81eaa672f1db6fcd6b32d9faa88515c378e3e /mail/em-folder-properties.c
parent35e55a8d6e3455efa92abd669680d191e3e4cbac (diff)
downloadgsoc2013-evolution-22ef5aa7e61bcea10169153932f100a0954942da.tar.gz
gsoc2013-evolution-22ef5aa7e61bcea10169153932f100a0954942da.tar.zst
gsoc2013-evolution-22ef5aa7e61bcea10169153932f100a0954942da.zip
Kill mail_config_get_gconf_client().
Diffstat (limited to 'mail/em-folder-properties.c')
-rw-r--r--mail/em-folder-properties.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/mail/em-folder-properties.c b/mail/em-folder-properties.c
index d802aeb885..dbec0963f5 100644
--- a/mail/em-folder-properties.c
+++ b/mail/em-folder-properties.c
@@ -222,8 +222,9 @@ emfp_dialog_got_folder_quota (CamelFolder *folder,
CamelStore *local_store;
CamelStore *parent_store;
gboolean hide_deleted;
- GConfClient *gconf;
+ GConfClient *client;
const gchar *name;
+ const gchar *key;
if (folder == NULL)
return;
@@ -238,17 +239,18 @@ emfp_dialog_got_folder_quota (CamelFolder *folder,
prop_data->object = g_object_ref (folder);
prop_data->quota = camel_folder_quota_info_clone (quota);
- /*
- Get number of VISIBLE and DELETED messages, instead of TOTAL messages. VISIBLE+DELETED
- gives the correct count that matches the label below the Send & Receive button
- */
+ /* Get number of VISIBLE and DELETED messages, instead of TOTAL
+ * messages. VISIBLE+DELETED gives the correct count that matches
+ * the label below the Send & Receive button. */
name = camel_folder_get_name (folder);
prop_data->total = folder->summary->visible_count;
prop_data->unread = folder->summary->unread_count;
deleted = folder->summary->deleted_count;
- gconf = mail_config_get_gconf_client ();
- hide_deleted = !gconf_client_get_bool(gconf, "/apps/evolution/mail/display/show_deleted", NULL);
+ client = gconf_client_get_default ();
+ key = "/apps/evolution/mail/display/show_deleted";
+ hide_deleted = !gconf_client_get_bool(client, key, NULL);
+ g_object_unref (client);
/*
Do the calculation only for those accounts that support VTRASHes