From a9cfed5938aef37d95c009411f965ebc185547c1 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Fri, 16 Dec 2011 10:40:37 -0500 Subject: 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. --- mail/em-composer-utils.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'mail/em-composer-utils.c') diff --git a/mail/em-composer-utils.c b/mail/em-composer-utils.c index f6a938bdac..c304007f95 100644 --- a/mail/em-composer-utils.c +++ b/mail/em-composer-utils.c @@ -2738,8 +2738,6 @@ static void post_header_clicked_cb (EComposerPostHeader *header, EMailSession *session) { - EShell *shell; - EShellBackend *shell_backend; GtkTreeSelection *selection; EMFolderSelector *selector; EMFolderTreeModel *model; @@ -2747,16 +2745,11 @@ post_header_clicked_cb (EComposerPostHeader *header, GtkWidget *dialog; GList *list; - /* FIXME Figure out a way to pass the mail backend in. */ - shell = e_shell_get_default (); - shell_backend = e_shell_get_backend_by_name (shell, "mail"); - /* FIXME Limit the folder tree to the NNTP account? */ model = em_folder_tree_model_get_default (); dialog = em_folder_selector_new ( /* FIXME GTK_WINDOW (composer) */ NULL, - E_MAIL_BACKEND (shell_backend), model, EM_FOLDER_SELECTOR_CAN_CREATE, _("Posting destination"), _("Choose folders to post the message to."), -- cgit v1.2.3