diff options
author | Srinivasa Ragavan <sragavan@gnome.org> | 2010-04-30 12:01:13 +0800 |
---|---|---|
committer | Srinivasa Ragavan <sragavan@gnome.org> | 2010-04-30 12:01:13 +0800 |
commit | 76031ea9cebcd1a261d0f1e4f7b69ceb296068c8 (patch) | |
tree | eaee0813d943287e215db4fd3d451412f27833ea | |
parent | dbbeab8bd0417702a182764386f727d27194774b (diff) | |
download | gsoc2013-evolution-76031ea9cebcd1a261d0f1e4f7b69ceb296068c8.tar.gz gsoc2013-evolution-76031ea9cebcd1a261d0f1e4f7b69ceb296068c8.tar.zst gsoc2013-evolution-76031ea9cebcd1a261d0f1e4f7b69ceb296068c8.zip |
Don't show mail alerts on calendar view in express mode.
-rw-r--r-- | 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 4ab444027f..734fefbd72 100644 --- a/mail/e-mail-backend.c +++ b/mail/e-mail-backend.c @@ -22,6 +22,7 @@ * */ +#include <string.h> #include "e-mail-backend.h" #include <camel/camel.h> @@ -283,6 +284,11 @@ mail_backend_quit_requested_cb (EShell *shell, /* We can quit immediately if offline. */ if (!e_shell_get_online (shell)) return; + + /* In express mode, don't raise mail request in non mail window. */ + if (e_shell_get_express_mode(shell) && + strcmp(e_shell_window_get_active_view((EShellWindow *)window), "mail") != 0) + return; /* Check Outbox for any unsent messages. */ |