diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2011-12-16 23:40:37 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2011-12-16 23:58:54 +0800 |
commit | a9cfed5938aef37d95c009411f965ebc185547c1 (patch) | |
tree | d0c6eb1d5acea6752425169aae47e8f4ed4b55ea /mail/em-account-editor.c | |
parent | df85cb1b7a47f713cb775f648f735e642a1bb71b (diff) | |
download | gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.tar.gz gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.tar.zst gsoc2013-evolution-a9cfed5938aef37d95c009411f965ebc185547c1.zip |
Avoid passing EMailBackend as much as possible.
More mail API churn... reversing some previous API decisions.
I've made some key API changes to EMailSession on the account-mgmt
branch which should allow for this, and will hopefully also benefit
the "email-factory" branch.
EMailBackend barely needs to exist anymore, except as the owner of
EMailSession.
For several low-level functions, we replace its EMailBackend parameter
with EMailSession and EAlertSink parameters; the latter so it can still
pass user alerts up the chain.
Diffstat (limited to 'mail/em-account-editor.c')
-rw-r--r-- | mail/em-account-editor.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/mail/em-account-editor.c b/mail/em-account-editor.c index 4fe4a382b1..0f9754847a 100644 --- a/mail/em-account-editor.c +++ b/mail/em-account-editor.c @@ -1856,7 +1856,7 @@ emae_account_folder (EMAccountEditor *emae, session = e_mail_backend_get_session (backend); folder = (EMFolderSelectionButton *) e_builder_get_widget (builder, name); - em_folder_selection_button_set_backend (folder, backend); + em_folder_selection_button_set_session (folder, session); uri = e_account_get_string (account, item); if (uri != NULL) { @@ -3752,7 +3752,7 @@ update_real_folder_cb (GtkButton *folder_button, if (folder_uri && *folder_uri) { EMailSession *session; - session = e_mail_backend_get_session (em_folder_selection_button_get_backend (sel_button)); + session = em_folder_selection_button_get_session (sel_button); if (!e_mail_folder_uri_parse (CAMEL_SESSION (session), folder_uri, NULL, &path, NULL)) path = NULL; } @@ -3831,7 +3831,7 @@ emae_defaults_page (EConfig *ec, widget = e_builder_get_widget (builder, "trash_folder_butt"); button = EM_FOLDER_SELECTION_BUTTON (widget); - em_folder_selection_button_set_backend (button, backend); + em_folder_selection_button_set_session (button, session); em_folder_selection_button_set_store (button, store); priv->trash_folder_button = GTK_BUTTON (button); @@ -3889,7 +3889,7 @@ emae_defaults_page (EConfig *ec, widget = e_builder_get_widget (builder, "junk_folder_butt"); button = EM_FOLDER_SELECTION_BUTTON (widget); - em_folder_selection_button_set_backend (button, backend); + em_folder_selection_button_set_session (button, session); em_folder_selection_button_set_store (button, store); priv->junk_folder_button = GTK_BUTTON (button); |