From ea0fdf21ece0f81b6bbe3c08e1c21da76280acd4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 17 Apr 2011 13:13:55 -0400 Subject: Adapt to sealed up CamelService. --- mail/em-folder-tree.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mail/em-folder-tree.c') 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; -- cgit