From 1c4586eccab933f84c7074382294d7c1450b379c Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 5 May 2011 14:22:36 -0400 Subject: EMFolderTreeModel: Avoid e_get_account_by_source_url(). Use e_get_account_by_uid() instead. --- mail/em-folder-tree-model.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mail/em-folder-tree-model.c') 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); -- cgit