aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 02:22:36 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-06 03:20:23 +0800
commit8f4e85e44c1f4cc52e7705c029ec326e785f96ac (patch)
tree94ee8192bc74b92a4bcd4abbdf2ec49ab28587d5 /mail
parent8b23032f2fde03d2cde5cba32e8b4dbd53a05e49 (diff)
downloadgsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.tar
gsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.tar.gz
gsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.tar.bz2
gsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.tar.lz
gsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.tar.xz
gsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.tar.zst
gsoc2013-evolution-8f4e85e44c1f4cc52e7705c029ec326e785f96ac.zip
EMFolderTreeModel: Avoid e_get_account_by_source_url().
Use e_get_account_by_uid() instead.
Diffstat (limited to 'mail')
-rw-r--r--mail/em-folder-tree-model.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 25d3d993e4..e3d3ba10f2 100644
--- a/mail/em-folder-tree-model.c
+++ b/mail/em-folder-tree-model.c
@@ -1005,6 +1005,7 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model,
GtkTreePath *path;
CamelURL *service_url;
EAccount *account;
+ const gchar *uid;
gchar *uri;
g_return_if_fail (EM_IS_FOLDER_TREE_MODEL (model));
@@ -1020,7 +1021,8 @@ em_folder_tree_model_add_store (EMFolderTreeModel *model,
service_url = camel_service_get_camel_url (CAMEL_SERVICE (store));
uri = camel_url_to_string (service_url, CAMEL_URL_HIDE_ALL);
- account = e_get_account_by_source_url (uri);
+ uid = camel_service_get_uid (CAMEL_SERVICE (store));
+ account = e_get_account_by_uid (uid);
/* Add the store to the tree. */
gtk_tree_store_append (tree_store, &iter, NULL);