[evolution-rss] adapt to CamelService changes



commit f29c95417c6f47a43e946e2b2e08b9690fe8fc7f
Author: Lucian Langa <lucilanga gnome org>
Date:   Tue Apr 19 11:56:19 2011 +0300

    adapt to CamelService changes

 src/rss-evo-common.c |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
---
diff --git a/src/rss-evo-common.c b/src/rss-evo-common.c
index cb93f23..f46020e 100644
--- a/src/rss-evo-common.c
+++ b/src/rss-evo-common.c
@@ -79,6 +79,8 @@ rss_emfu_copy_folder_selected (EMailBackend *backend,
 	struct _copy_folder_data *cfd = data;
 	CamelStore *fromstore = NULL, *tostore = NULL;
 	CamelStore *local_store;
+	CamelService *service;
+	CamelProvider *provider;
 	const gchar *tobase = NULL;
 	CamelURL *url;
 	GError *local_error = NULL;
@@ -122,8 +124,11 @@ rss_emfu_copy_folder_selected (EMailBackend *backend,
 		goto fail;
 	}
 
+	service = CAMEL_SERVICE (tostore);
+	provider = camel_service_get_provider (service);
+
 	url = camel_url_new (uri, NULL);
-	if (((CamelService *)tostore)->provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
+	if (provider->url_flags & CAMEL_URL_FRAGMENT_IS_PATH)
 		tobase = url->fragment;
 	else if (url->path && url->path[0])
 		tobase = url->path+1;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]