[evolution] EMFolderTreeModel: Avoid e_get_account_by_source_url().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EMFolderTreeModel: Avoid e_get_account_by_source_url().
- Date: Thu, 5 May 2011 19:21:36 +0000 (UTC)
commit 8f4e85e44c1f4cc52e7705c029ec326e785f96ac
Author: Matthew Barnes <mbarnes redhat com>
Date: Thu May 5 14:22:36 2011 -0400
EMFolderTreeModel: Avoid e_get_account_by_source_url().
Use e_get_account_by_uid() instead.
mail/em-folder-tree-model.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/mail/em-folder-tree-model.c b/mail/em-folder-tree-model.c
index 25d3d99..e3d3ba1 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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]