aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-06 02:22:36 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:07 +0800
commit1c4586eccab933f84c7074382294d7c1450b379c (patch)
tree20246968e32acbe4e889b49249b4b8a4d91b8ede
parentf904b972f1b4540a55d2045c122f252f16092c9a (diff)
downloadgsoc2013-evolution-1c4586eccab933f84c7074382294d7c1450b379c.tar.gz
gsoc2013-evolution-1c4586eccab933f84c7074382294d7c1450b379c.tar.zst
gsoc2013-evolution-1c4586eccab933f84c7074382294d7c1450b379c.zip
EMFolderTreeModel: Avoid e_get_account_by_source_url().
Use e_get_account_by_uid() instead.
-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);