[evolution-rss] migtate to EMailSession
- From: Lucian Langa <lucilanga src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-rss] migtate to EMailSession
- Date: Wed, 14 Dec 2011 16:24:46 +0000 (UTC)
commit 8d767481a6c77688617de7d8eab9c3761f4dbcbc
Author: Lucian Langa <lucilanga gnome org>
Date: Wed Dec 14 17:15:10 2011 +0100
migtate to EMailSession
src/rss-evo-common.c | 6 +++++-
src/rss.c | 14 +++++++++++---
2 files changed, 16 insertions(+), 4 deletions(-)
---
diff --git a/src/rss-evo-common.c b/src/rss-evo-common.c
index 13036ef..6c6ca6e 100644
--- a/src/rss-evo-common.c
+++ b/src/rss-evo-common.c
@@ -104,8 +104,12 @@ rss_emfu_copy_folder_selected (EMailBackend *backend,
}
#endif
- local_store = e_mail_local_get_store ();
session = e_mail_backend_get_session (backend);
+#if (EVOLUTION_VERSION < 30303)
+ local_store = e_mail_local_get_store ();
+#else
+ local_store = e_mail_session_get_local_store (session);
+#endif
#if EVOLUTION_VERSION >= 30101
service = CAMEL_SERVICE (cfd->source_store);
diff --git a/src/rss.c b/src/rss.c
index fec09a4..bf115ee 100644
--- a/src/rss.c
+++ b/src/rss.c
@@ -3871,10 +3871,18 @@ rss_component_peek_base_directory(void)
CamelStore *
rss_component_peek_local_store(void)
{
-#if (EVOLUTION_VERSION < 22900) //kb//
- return mail_component_peek_local_store(NULL);
-#else
+#if (EVOLUTION_VERSION < 30303)
return e_mail_local_get_store();
+#else
+ EMailBackend *backend;
+ EMailSession *session;
+ EShellBackend *shell_backend;
+
+ shell_backend = e_shell_view_get_shell_backend (rss_shell_view);
+
+ backend = E_MAIL_BACKEND (shell_backend);
+ session = e_mail_backend_get_session (backend);
+ return e_mail_session_get_local_store (session);
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]