diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-18 05:19:13 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-19 00:32:37 +0800 |
commit | 22ef5aa7e61bcea10169153932f100a0954942da (patch) | |
tree | 18e81eaa672f1db6fcd6b32d9faa88515c378e3e /mail/em-folder-tree.c | |
parent | 35e55a8d6e3455efa92abd669680d191e3e4cbac (diff) | |
download | gsoc2013-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-tree.c')
-rw-r--r-- | mail/em-folder-tree.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c index 4441d391a6..1f4500cc86 100644 --- a/mail/em-folder-tree.c +++ b/mail/em-folder-tree.c @@ -1258,10 +1258,10 @@ folder_tree_new (EMFolderTree *folder_tree) GtkTreeViewColumn *column; GtkCellRenderer *renderer; GtkWidget *tree; - GConfClient *gconf; + GConfClient *client; const gchar *key; - gconf = mail_config_get_gconf_client (); + client = gconf_client_get_default (); /* FIXME Gross hack */ tree = GTK_WIDGET (folder_tree); @@ -1282,7 +1282,7 @@ folder_tree_new (EMFolderTree *folder_tree) renderer = gtk_cell_renderer_text_new (); key = "/apps/evolution/mail/display/no_folder_dots"; - if (!gconf_client_get_bool (gconf, key, NULL)) + if (!gconf_client_get_bool (client, key, NULL)) g_object_set ( renderer, "ellipsize", PANGO_ELLIPSIZE_END, NULL); gtk_tree_view_column_pack_start (column, renderer, TRUE); @@ -1303,6 +1303,8 @@ folder_tree_new (EMFolderTree *folder_tree) gtk_tree_view_set_search_column ((GtkTreeView *)tree, COL_STRING_DISPLAY_NAME); + g_object_unref (client); + return (GtkTreeView *) tree; } |