aboutsummaryrefslogtreecommitdiffstats
path: root/libemail-engine/mail-folder-cache.h
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2013-07-16 20:29:11 +0800
committerMatthew Barnes <mbarnes@redhat.com>2013-07-18 00:08:46 +0800
commit3f2d55fb7ffdaa06327f69c72c591b72ffea55ad (patch)
tree9befb2840ffc2d813c927a575a67182ef9c9d991 /libemail-engine/mail-folder-cache.h
parentc085e4b4457eadd5fcca8fdaa729d5aa2e97ce88 (diff)
downloadgsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.tar
gsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.tar.gz
gsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.tar.bz2
gsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.tar.lz
gsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.tar.xz
gsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.tar.zst
gsoc2013-evolution-3f2d55fb7ffdaa06327f69c72c591b72ffea55ad.zip
MailFolderCache: Remove the "session" property.
I considered replacing the "session" property with a "registry" property, but that just complicates application startup even more. Fact is, if we have a CamelStore then we can get the CamelSession and even the ESourceRegistry from it. Kinda dirty, but works. It goes a little something like this... camel_service = CAMEL_SERVICE (camel_store); camel_session = camel_service_get_session (camel_service); mail_session = E_MAIL_SESSION (camel_session); registry = e_mail_session_get_registry (mail_session); Removed functions: mail_folder_cache_get_session()
Diffstat (limited to 'libemail-engine/mail-folder-cache.h')
-rw-r--r--libemail-engine/mail-folder-cache.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/libemail-engine/mail-folder-cache.h b/libemail-engine/mail-folder-cache.h
index e5c0ebecc5..e1547f1bf1 100644
--- a/libemail-engine/mail-folder-cache.h
+++ b/libemail-engine/mail-folder-cache.h
@@ -49,9 +49,6 @@
G_BEGIN_DECLS
-/* Avoid a circular dependency. */
-struct _EMailSession;
-
typedef struct _MailFolderCache MailFolderCache;
typedef struct _MailFolderCacheClass MailFolderCacheClass;
typedef struct _MailFolderCachePrivate MailFolderCachePrivate;
@@ -110,9 +107,7 @@ struct _MailFolderCacheClass {
GType mail_folder_cache_get_type (void) G_GNUC_CONST;
MailFolderCache *
- mail_folder_cache_new (struct _EMailSession *session);
-struct _EMailSession *
- mail_folder_cache_get_session (MailFolderCache *cache);
+ mail_folder_cache_new (void);
void mail_folder_cache_note_store (MailFolderCache *cache,
CamelStore *store,
GCancellable *cancellable,