aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-04-18 01:13:55 +0800
committerRodrigo Moya <rodrigo@gnome-db.org>2011-06-30 00:41:55 +0800
commitf31b492945408f038ae16a099900631ae9714912 (patch)
tree031f02a545f2f540048ee1fe7a8180fb10d9dd0a /mail/em-folder-tree.c
parenta6dbbf97cac0e702d9de86b4defabcbe22e12cf3 (diff)
downloadgsoc2013-evolution-f31b492945408f038ae16a099900631ae9714912.tar.gz
gsoc2013-evolution-f31b492945408f038ae16a099900631ae9714912.tar.zst
gsoc2013-evolution-f31b492945408f038ae16a099900631ae9714912.zip
Adapt to sealed up CamelService.
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 81803b53a3..e5ef9d4f0c 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -2736,11 +2736,16 @@ em_folder_tree_set_selected_list (EMFolderTree *folder_tree,
priv->select_uris = g_slist_append (priv->select_uris, u);
}
} else {
+ CamelService *service;
+ CamelProvider *provider;
const gchar *path;
gchar *expand_key, *end;
EAccount *account;
- if (((CamelService *)u->store)->provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
+ service = CAMEL_SERVICE (u->store);
+ provider = camel_service_get_provider (service);
+
+ if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
path = url->fragment;
else
path = url->path && url->path[0]=='/' ? url->path+1:url->path;