diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-07-29 04:18:08 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-07-29 04:35:40 +0800 |
commit | 125e67bfcb57de9a7b834475ac78ea3986e912a1 (patch) | |
tree | 5422b2b1aff186a6634fe1591d5ee0a6d1e0af80 /mail/em-utils.c | |
parent | a73b369b72ec688c190a32952cd2d672d4eb1bf5 (diff) | |
download | gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.tar gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.tar.gz gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.tar.bz2 gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.tar.lz gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.tar.xz gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.tar.zst gsoc2013-evolution-125e67bfcb57de9a7b834475ac78ea3986e912a1.zip |
Fix where to look for filters.xml and vfolders.xml.
They live in $XDG_CONFIG_DIR/evolution/mail now.
Evolution was looking in $XDG_DATA_DIR/evolution/mail.
Diffstat (limited to 'mail/em-utils.c')
-rw-r--r-- | mail/em-utils.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/mail/em-utils.c b/mail/em-utils.c index 80699ec7a2..3df5e791e9 100644 --- a/mail/em-utils.c +++ b/mail/em-utils.c @@ -244,12 +244,12 @@ em_filter_editor_response (GtkWidget *dialog, gint button, gpointer user_data) EMFilterContext *fc; if (button == GTK_RESPONSE_OK) { - const gchar *data_dir; + const gchar *config_dir; gchar *user; - data_dir = mail_session_get_data_dir (); + config_dir = mail_session_get_config_dir (); fc = g_object_get_data ((GObject *) dialog, "context"); - user = g_strdup_printf ("%s/filters.xml", data_dir); + user = g_build_filename (config_dir, "filters.xml", NULL); e_rule_context_save ((ERuleContext *) fc, user); g_free (user); } @@ -276,7 +276,7 @@ static EMFilterSource em_filter_source_element_names[] = { void em_utils_edit_filters (GtkWidget *parent) { - const gchar *data_dir; + const gchar *config_dir; gchar *user, *system; EMFilterContext *fc; @@ -285,10 +285,10 @@ em_utils_edit_filters (GtkWidget *parent) return; } - data_dir = mail_session_get_data_dir (); + config_dir = mail_session_get_config_dir (); fc = em_filter_context_new (); - user = g_build_filename (data_dir, "filters.xml", NULL); + user = g_build_filename (config_dir, "filters.xml", NULL); system = g_build_filename (EVOLUTION_PRIVDATADIR, "filtertypes.xml", NULL); e_rule_context_load ((ERuleContext *) fc, system, user); g_free (user); |