[evolution] [EMailBackend] Provide cancellable and show in UI prepare for a quit



commit 7c918831a8aac463ffe3cdd7e39b36ad09eec34a
Author: Milan Crha <mcrha redhat com>
Date:   Mon Nov 3 14:04:39 2014 +0100

    [EMailBackend] Provide cancellable and show in UI prepare for a quit
    
    There was no indication in the status bar what is going on when
    the Evolution was quitting, neither the associated activity could
    have missing cancellable. Providing the cancellable and showing
    the activity in the Mail's status bar may help a bit.

 mail/e-mail-backend.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index d3113ba..8e8c11b 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -396,8 +396,14 @@ mail_backend_prepare_for_quit_cb (EShell *shell,
                   camel_operation_cancel_all() had been called, but we want
                   it alive for the following operations, thus reset it. */
                g_cancellable_reset (cancellable);
+       } else {
+               cancellable = camel_operation_new ();
+               e_activity_set_cancellable (activity, cancellable);
+               g_object_unref (cancellable);
        }
 
+       e_shell_backend_add_activity (E_SHELL_BACKEND (backend), activity);
+
        list = camel_session_list_services (CAMEL_SESSION (session));
 
        if (delete_junk) {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]