From 3f2d55fb7ffdaa06327f69c72c591b72ffea55ad Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 16 Jul 2013 08:29:11 -0400 Subject: 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() --- libemail-engine/mail-folder-cache.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libemail-engine/mail-folder-cache.h') 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, -- cgit v1.2.3