From a06e4484b8df804124b5bcf88d94dec5acfba270 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 6 Oct 2010 23:38:52 -0400 Subject: Give MailSession a permanent home. Global variables in shared libraries are a bad idea. EMailBackend now owns the MailSession instance, which is actually now EMailSession. Move the blocking utility functions in mail-tools.c to e-mail-session.c and add asynchronous variants. Same approach as Camel. Replace EMailReader.get_shell_backend() with EMailReader.get_backend(), which returns an EMailBackend. Easier access to the EMailSession. --- modules/mail/em-account-prefs.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'modules/mail/em-account-prefs.h') diff --git a/modules/mail/em-account-prefs.h b/modules/mail/em-account-prefs.h index 5fe49b6b31..c00b860d35 100644 --- a/modules/mail/em-account-prefs.h +++ b/modules/mail/em-account-prefs.h @@ -25,6 +25,7 @@ #include #include #include +#include #include #include @@ -62,8 +63,9 @@ struct _EMAccountPrefsClass { EAccountManagerClass parent_class; }; -GType em_account_prefs_get_type (void); -GtkWidget *em_account_prefs_new (EPreferencesWindow *window); +GType em_account_prefs_get_type (void); +GtkWidget * em_account_prefs_new (EPreferencesWindow *window); +EMailSession * em_account_prefs_get_session (EMAccountPrefs *prefs); G_END_DECLS -- cgit v1.2.3