aboutsummaryrefslogtreecommitdiffstats
path: root/modules/mail/e-mail-shell-backend.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2011-01-08 03:52:07 +0800
committerMatthew Barnes <mbarnes@redhat.com>2011-01-08 04:25:42 +0800
commit41c66f2d87932113de4cfb2a19a13daf67681297 (patch)
tree0928b1d4524cfb987d3eaa57b44228fac070a719 /modules/mail/e-mail-shell-backend.c
parente962715a181517a352a3987a934097050505b343 (diff)
downloadgsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.tar
gsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.tar.gz
gsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.tar.bz2
gsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.tar.lz
gsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.tar.xz
gsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.tar.zst
gsoc2013-evolution-41c66f2d87932113de4cfb2a19a13daf67681297.zip
Avoid idle callbacks in EMailBackend initialization.
If the migration phase has to show a dialog the idle callback for intializing mail stores will run too soon. Instead, hook it onto the EShellBackend start() method. Migration code can initialize mail stores early if it needs to.
Diffstat (limited to 'modules/mail/e-mail-shell-backend.c')
-rw-r--r--modules/mail/e-mail-shell-backend.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/modules/mail/e-mail-shell-backend.c b/modules/mail/e-mail-shell-backend.c
index 590241a838..c7bba4944a 100644
--- a/modules/mail/e-mail-shell-backend.c
+++ b/modules/mail/e-mail-shell-backend.c
@@ -514,7 +514,9 @@ mail_shell_backend_start (EShellBackend *shell_backend)
EShell *shell;
EShellSettings *shell_settings;
EMailBackend *backend;
+ EMailSession *session;
gboolean enable_search_folders;
+ const gchar *data_dir;
priv = E_MAIL_SHELL_BACKEND_GET_PRIVATE (shell_backend);
@@ -522,6 +524,10 @@ mail_shell_backend_start (EShellBackend *shell_backend)
shell_settings = e_shell_get_shell_settings (shell);
backend = E_MAIL_BACKEND (shell_backend);
+ session = e_mail_backend_get_session (backend);
+ data_dir = e_shell_backend_get_data_dir (shell_backend);
+
+ e_mail_store_init (session, data_dir);
enable_search_folders = e_shell_settings_get_boolean (
shell_settings, "mail-enable-search-folders");