aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/groupwise-features/install-shared.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-05-04 03:18:15 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:42:06 +0800
commit77415c1d4ffa9c0b3daa3214fda1935c6a02d374 (patch)
treec2e6bf97a2ade00fc53686cc279bfe7270cd00d0 /plugins/groupwise-features/install-shared.c
parent03813da62833a21a78eb18537d5ce8247293ceb4 (diff)
downloadgsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.tar
gsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.tar.gz
gsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.tar.bz2
gsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.tar.lz
gsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.tar.xz
gsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.tar.zst
gsoc2013-evolution-77415c1d4ffa9c0b3daa3214fda1935c6a02d374.zip
groupwise-features: Avoid e_get_account_by_source_url().
Use e_get_account_by_uid() instead.
Diffstat (limited to 'plugins/groupwise-features/install-shared.c')
-rw-r--r--plugins/groupwise-features/install-shared.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/groupwise-features/install-shared.c b/plugins/groupwise-features/install-shared.c
index d43d6fa0fa..6d290d0993 100644
--- a/plugins/groupwise-features/install-shared.c
+++ b/plugins/groupwise-features/install-shared.c
@@ -110,7 +110,7 @@ install_folder_response (EMFolderSelector *emfs, gint response, gpointer *data)
container_id = get_container_id (cnc, parent_name);
if (e_gw_connection_accept_shared_folder (cnc, folder_name, container_id, (gchar *)item_id, NULL) == E_GW_CONNECTION_STATUS_OK) {
- CamelURL *url;
+ const gchar *uid;
/* FIXME Not passing a GCancellable or GError here. */
folder = camel_store_get_folder_sync (
@@ -126,9 +126,8 @@ install_folder_response (EMFolderSelector *emfs, gint response, gpointer *data)
CAMEL_MESSAGE_DELETED);
camel_folder_summary_touch (folder->summary);
/* camel_object_trigger_event (CAMEL_OBJECT (folder), "folder_changed", changes); */
- url = camel_service_get_camel_url (service);
- uri = camel_url_to_string (url, CAMEL_URL_HIDE_ALL);
- account = e_get_account_by_source_url (uri);
+ uid = camel_service_get_uid (service);
+ account = e_get_account_by_uid (uid);
uri = account->source->url;
em_folder_tree_model_remove_store (
model, CAMEL_STORE (service));