aboutsummaryrefslogtreecommitdiffstats
path: root/mail/mail-session.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-18 06:18:32 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-21 23:45:27 +0800
commite919ac51ab751df25f13f168ba99c485bf9a6d76 (patch)
tree81202a1721719a8d6a541cdb226590a82224f395 /mail/mail-session.c
parentec626660cfc5e2869a02c621247a7e0b02508151 (diff)
downloadgsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.tar
gsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.tar.gz
gsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.tar.bz2
gsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.tar.lz
gsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.tar.xz
gsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.tar.zst
gsoc2013-evolution-e919ac51ab751df25f13f168ba99c485bf9a6d76.zip
Remove MailSession's last dep on EShell
When MailSession moves to a daemon process, there will be no shell object to query for the active window (and indeed there will often be no window in any case), so we can't specify a parent for the error dialog. https://bugzilla.gnome.org/show_bug.cgi?id=604952
Diffstat (limited to 'mail/mail-session.c')
-rw-r--r--mail/mail-session.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/mail/mail-session.c b/mail/mail-session.c
index c7e86da926..1aa1972f52 100644
--- a/mail/mail-session.c
+++ b/mail/mail-session.c
@@ -49,7 +49,6 @@
#include "e-util/e-util.h"
#include "e-util/e-alert-dialog.h"
#include "e-util/e-util-private.h"
-#include "shell/e-shell.h"
#include "em-composer-utils.h"
#include "em-filter-context.h"
@@ -358,8 +357,10 @@ user_message_exec (struct _user_message_msg *m)
g_return_if_reached ();
}
- user_message_dialog = e_alert_dialog_new_for_args (
- e_shell_get_active_window (NULL), error_type, m->prompt, NULL);
+ /* The mail daemon won't have a window here, so there's nothing to set
+ * as the parent */
+ user_message_dialog =
+ e_alert_dialog_new_for_args (NULL, error_type, m->prompt, NULL);
g_object_set (
user_message_dialog, "allow_shrink", TRUE,
"allow_grow", TRUE, NULL);