aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-backend.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon@quotidian.org>2009-12-19 02:12:47 +0800
committerJonathon Jongsma <jonathon@quotidian.org>2009-12-19 02:46:33 +0800
commit43e436121ab61b9850122806122741099ce64857 (patch)
tree86f8f401f7a6b3be748a09606788a0420bb534b6 /mail/e-mail-backend.c
parente2a748116df1399acde19effb5cba78704e9d06e (diff)
downloadgsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.tar
gsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.tar.gz
gsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.tar.bz2
gsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.tar.lz
gsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.tar.xz
gsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.tar.zst
gsoc2013-evolution-43e436121ab61b9850122806122741099ce64857.zip
Implement get_data/config_dir vfuncs for mail backend
Now the backend specifies the data dir for the mail module. Obviously it uses the same directory as it previously used, it's just that the responsibility for defining that value has moved to a different place.
Diffstat (limited to 'mail/e-mail-backend.c')
-rw-r--r--mail/e-mail-backend.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/mail/e-mail-backend.c b/mail/e-mail-backend.c
index 5d5effe72c..64880ff98f 100644
--- a/mail/e-mail-backend.c
+++ b/mail/e-mail-backend.c
@@ -14,8 +14,11 @@
* You should have received a copy of the GNU Lesser General Public
* License along with the program; if not, see <http://www.gnu.org/licenses/>
*
+ * Authors:
+ * Jonathon Jongsma <jonathon.jongsma@collabora.co.uk>
*
* Copyright (C) 1999-2008 Novell, Inc. (www.novell.com)
+ * Copyright (C) 2009 Intel Corporation
*
*/
@@ -55,6 +58,18 @@ static gpointer parent_class;
/* FIXME Kill this thing. It's a horrible hack. */
extern gint camel_application_is_exiting;
+static const gchar *
+mail_shell_backend_get_data_dir (EShellBackend *backend)
+{
+ return mail_session_get_data_dir ();
+}
+
+static const gchar *
+mail_shell_backend_get_config_dir (EShellBackend *backend)
+{
+ return mail_session_get_config_dir ();
+}
+
/* Callback for various asynchronous CamelStore operations where
* the EActivity's reference count is used as a counting semaphore. */
static void
@@ -431,6 +446,8 @@ mail_backend_class_init (EMailBackendClass *class)
shell_backend_class = E_SHELL_BACKEND_CLASS (class);
shell_backend_class->migrate = e_mail_migrate;
+ shell_backend_class->get_data_dir = mail_shell_backend_get_data_dir;
+ shell_backend_class->get_config_dir = mail_shell_backend_get_config_dir;
}
static void