diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-10-07 11:38:52 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-10-13 01:58:59 +0800 |
commit | a06e4484b8df804124b5bcf88d94dec5acfba270 (patch) | |
tree | 4fa42793d7dc461f2b3767296d76592182c48222 /modules/mail/em-account-prefs.h | |
parent | 5e0758bb6934a7859b1d8a247c8fb21c156772cf (diff) | |
download | gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.gz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.bz2 gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.lz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.xz gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.tar.zst gsoc2013-evolution-a06e4484b8df804124b5bcf88d94dec5acfba270.zip |
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.
Diffstat (limited to 'modules/mail/em-account-prefs.h')
-rw-r--r-- | modules/mail/em-account-prefs.h | 6 |
1 files changed, 4 insertions, 2 deletions
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 <gtk/gtk.h> #include <table/e-table.h> #include <libedataserver/e-account-list.h> +#include <mail/e-mail-session.h> #include <misc/e-account-manager.h> #include <widgets/misc/e-preferences-window.h> @@ -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 |