aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/share-folder-common.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-04 03:18:15 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-05-04 03:18:15 +0800
commitb4d14fdbe518e1009fd67e590c8d90ff5dc58382 (patch)
tree60acc521ee2aeaf99d015643f56079b6f313131e /plugins/groupwise-features/share-folder-common.c
parentd05029936cd3245bf611fe7bec3c60ecb2c842cc (diff)
downloadgsoc2013-evolution-b4d14fdbe518e1009fd67e590c8d90ff5dc58382.tar.gz
gsoc2013-evolution-b4d14fdbe518e1009fd67e590c8d90ff5dc58382.tar.zst
gsoc2013-evolution-b4d14fdbe518e1009fd67e590c8d90ff5dc58382.zip
groupwise-features: Avoid e_get_account_by_source_url().
Use e_get_account_by_uid() instead.
Diffstat (limited to 'plugins/groupwise-features/share-folder-common.c')
-rw-r--r--plugins/groupwise-features/share-folder-common.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/plugins/groupwise-features/share-folder-common.c b/plugins/groupwise-features/share-folder-common.c
index 3adb7542e5..20720e916c 100644
--- a/plugins/groupwise-features/share-folder-common.c
+++ b/plugins/groupwise-features/share-folder-common.c
@@ -66,18 +66,16 @@ static void refresh_folder_tree (EMFolderTreeModel *model, CamelStore *store);
static void
refresh_folder_tree (EMFolderTreeModel *model, CamelStore *store)
{
- gchar *uri;
EAccount *account;
CamelProvider *provider;
- CamelURL *url;
+ const gchar *uid;
+ gchar *uri;
- url = camel_service_get_camel_url (CAMEL_SERVICE (store));
- uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
+ uid = camel_service_get_uid (CAMEL_SERVICE (store));
+ account = e_get_account_by_uid (uid);
- account = e_get_account_by_source_url (uri);
- if (!account) {
+ if (account == NULL)
return;
- }
uri = account->source->url;
em_folder_tree_model_remove_store (model, store);
@@ -89,7 +87,6 @@ refresh_folder_tree (EMFolderTreeModel *model, CamelStore *store)
if (!(provider->flags & CAMEL_PROVIDER_IS_STORAGE))
return;
em_folder_tree_model_add_store (model, store, account->name);
- /* g_object_unref (store); */
}
void