diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-05-24 05:09:24 +0800 |
---|---|---|
committer | Rodrigo Moya <rodrigo@gnome-db.org> | 2011-06-30 00:42:19 +0800 |
commit | 7050475f84247fb15e24aa1bb31502106c18815d (patch) | |
tree | 60e500f221d5f97b241045b10806c5c4ddbcc7c1 /mail/em-account-editor.h | |
parent | a98cb0a9820d2119bf10c317e5f6a9d56dd9073c (diff) | |
download | gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.gz gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.tar.zst gsoc2013-evolution-7050475f84247fb15e24aa1bb31502106c18815d.zip |
EMFolderTree: Store an EMailBackend instead of an EMailSession.
All this so EMFolderTree can submit EActivity instances for async ops.
You can obtain an EMailSession from an EMailBackend, but not vice versa.
Creates lots of pretty ripples in the mail code, but ultimately reduces
complexity. So it's a code cleanup of sorts.
Diffstat (limited to 'mail/em-account-editor.h')
-rw-r--r-- | mail/em-account-editor.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-account-editor.h b/mail/em-account-editor.h index 7be79c6c5e..a34fd8af2d 100644 --- a/mail/em-account-editor.h +++ b/mail/em-account-editor.h @@ -26,7 +26,7 @@ #include <gtk/gtk.h> #include <mail/em-config.h> -#include <mail/e-mail-session.h> +#include <mail/e-mail-backend.h> /* Standard GObject macros */ #define EM_TYPE_ACCOUNT_EDITOR \ @@ -99,19 +99,19 @@ GType em_account_editor_get_type (void); EMAccountEditor * em_account_editor_new (EAccount *account, EMAccountEditorType type, - EMailSession *session, + EMailBackend *backend, const gchar *id); EMAccountEditor * em_account_editor_new_for_pages (EAccount *account, EMAccountEditorType type, - EMailSession *session, + EMailBackend *backend, const gchar *id, GtkWidget **pages); +EMailBackend * em_account_editor_get_backend (EMAccountEditor *emae); EAccount * em_account_editor_get_modified_account (EMAccountEditor *emae); EAccount * em_account_editor_get_original_account (EMAccountEditor *emae); -EMailSession * em_account_editor_get_session (EMAccountEditor *emae); void em_account_editor_commit (EMAccountEditor *emae); gboolean em_account_editor_check (EMAccountEditor *emae, const gchar *page); |