diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-12-17 02:39:39 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-12-17 02:39:39 +0800 |
commit | f65f8935bce5538d490d872e9838874c83717953 (patch) | |
tree | cfbe6490bcd4e8936319ce73088144fbb5aef707 /mail/mail-session.c | |
parent | 2a7f68fe45f3e60547212a6895a0fd202c5c3f09 (diff) | |
download | gsoc2013-evolution-f65f8935bce5538d490d872e9838874c83717953.tar.gz gsoc2013-evolution-f65f8935bce5538d490d872e9838874c83717953.tar.zst gsoc2013-evolution-f65f8935bce5538d490d872e9838874c83717953.zip |
Kill MailSession's interactive flag.
After analyzing this again I'm confident we really don't need it.
The only state change is from FALSE to TRUE at startup, and that
one-time event happens while the mail shell backend is starting up
(see: e_shell_backend_start()).
If a need arises to query for this in the future I'll extend the
EShellBackend API with an e_shell_backend_started() function, but
for now there's no need.
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r-- | mail/mail-session.c | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c index e9ad274839..2360c064c0 100644 --- a/mail/mail-session.c +++ b/mail/mail-session.c @@ -755,39 +755,6 @@ mail_session_shutdown (void) camel_shutdown (); } -gboolean -mail_session_get_interactive (void) -{ - return MAIL_SESSION (session)->interactive; -} - -void -mail_session_set_interactive (gboolean interactive) -{ - MAIL_SESSION (session)->interactive = interactive; - - if (!interactive) { - struct _user_message_msg *msg; - - d(printf ("Gone non-interactive, checking for outstanding interactive tasks\n")); - - e_passwords_cancel(); - - /* flush/cancel pending user messages */ - while (!g_queue_is_empty (&user_message_queue)) { - msg = g_queue_pop_head (&user_message_queue); - e_flag_set (msg->done); - mail_msg_unref (msg); - } - - /* and the current */ - if (user_message_dialog) { - d(printf("Destroying message dialogue\n")); - gtk_widget_destroy ((GtkWidget *) user_message_dialog); - } - } -} - void mail_session_flush_filter_log (void) { |