[anjal] In evolution master, we've added get_data_dir() and get_config_dir() vfuncs to EShellBackend. The r



commit af2adcfbc229c1335772d54daa2ec8a5953c1be5
Author: Jonathon Jongsma <jonathon jongsma collabora co uk>
Date:   Mon Jan 11 15:30:50 2010 +0530

    In evolution master, we've added get_data_dir() and get_config_dir()
    vfuncs to EShellBackend.  The reason for doing this is that when the mail backend
    is split out to its own process, we want the mail backend to be responsible for
    specifying its data dir, etc.  This patch updates the anjal shell
    backend to query the data dir from the mail session in the same way that it is done
    in EMailBackend.

 src/module/anjal-shell-backend.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/module/anjal-shell-backend.c b/src/module/anjal-shell-backend.c
index 942a3a2..112bb5d 100644
--- a/src/module/anjal-shell-backend.c
+++ b/src/module/anjal-shell-backend.c
@@ -317,7 +317,6 @@ anjal_shell_backend_constructed (GObject *object)
 	AnjalShellBackendPrivate *priv;
 	EShell *shell;
 	EShellBackend *shell_backend;
-	char *custom_dir;
 
 	priv = ANJAL_SHELL_BACKEND_GET_PRIVATE (object);
 
@@ -358,9 +357,7 @@ anjal_shell_backend_constructed (GObject *object)
 	mail_config_init ();
 	mail_msg_init ();
 
-	custom_dir = g_build_filename (e_get_user_data_dir (), "mail", NULL);
-	e_mail_store_init (custom_dir);
-	g_free (custom_dir);
+	e_mail_store_init (mail_session_get_data_dir ());
 
 	e_mail_shell_settings_init (shell);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]