aboutsummaryrefslogtreecommitdiffstats
path: root/mail/em-folder-tree.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/em-folder-tree.c')
-rw-r--r--mail/em-folder-tree.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/em-folder-tree.c b/mail/em-folder-tree.c
index 51a116f643..69a34357a6 100644
--- a/mail/em-folder-tree.c
+++ b/mail/em-folder-tree.c
@@ -64,6 +64,7 @@
#include "e-mail-local.h"
#include "e-mail-session.h"
+#include "e-mail-store.h"
#define d(x)
@@ -1695,8 +1696,18 @@ em_folder_tree_get_type (void)
GtkWidget *
em_folder_tree_new (EMailSession *session)
{
+ const gchar *data_dir;
+ EShell *default_shell;
+ EShellBackend *mail_backend;
+
g_return_val_if_fail (E_IS_MAIL_SESSION (session), NULL);
+ default_shell = e_shell_get_default ();
+ mail_backend = e_shell_get_backend_by_name (default_shell, "mail");
+ data_dir = e_shell_backend_get_data_dir (mail_backend);
+
+ e_mail_store_init (session, data_dir);
+
return g_object_new (
EM_TYPE_FOLDER_TREE, "session", session, NULL);
}