aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 01:57:49 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:07 +0800
commit8ab99283eeab61494444ae83e6a817e581bc133a (patch)
tree182e1ae4966cf827eaf2d44acfcc89eedafac12c /mail
parente4fb22eec28980467cb6e0db49414abb2cd6e386 (diff)
downloadgsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.tar
gsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.tar.gz
gsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.tar.bz2
gsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.tar.lz
gsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.tar.xz
gsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.tar.zst
gsoc2013-evolution-8ab99283eeab61494444ae83e6a817e581bc133a.zip
Simplify emae_account_folder().
EMFolderSelectionButton uses e_mail_folder_uri_parse(), so we can just hand it an 'email://' URI directly.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-account-editor.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c
index 5147b65635..1cbc635cea 100644
--- a/mail/em-account-editor.c
+++ b/mail/em-account-editor.c
@@ -1114,14 +1114,9 @@ emae_account_folder (EMAccountEditor *emae, const gchar *name, gint item, gint d
account = em_account_editor_get_modified_account (emae);
folder = (EMFolderSelectionButton *)e_builder_get_widget (builder, name);
uri = e_account_get_string (account, item);
- if (uri) {
- gchar *tmp = em_uri_to_camel (uri);
-
- em_folder_selection_button_set_selection (folder, tmp);
- g_free (tmp);
+ if (uri != NULL) {
+ em_folder_selection_button_set_selection (folder, uri);
} else {
- const gchar *uri;
-
uri = e_mail_local_get_folder_uri (deffolder);
em_folder_selection_button_set_selection (folder, uri);
}