diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2008-03-12 20:25:24 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2008-03-12 20:25:24 +0800 |
commit | cc692562f528115284d338dea12f8809d1efd17f (patch) | |
tree | 07150f4269ee1125a5c867fbd7dc72de81520873 /mail/mail-config.c | |
parent | da53bb3e1f23f696e1245676b71fe617a5f4a48a (diff) | |
download | gsoc2013-evolution-cc692562f528115284d338dea12f8809d1efd17f.tar.gz gsoc2013-evolution-cc692562f528115284d338dea12f8809d1efd17f.tar.zst gsoc2013-evolution-cc692562f528115284d338dea12f8809d1efd17f.zip |
** Fixes breakage caused by bug #513951
2008-03-12 Matthew Barnes <mbarnes@redhat.com>
** Fixes breakage caused by bug #513951
* mail-autofilter.c (filter_gui_add_from_message),
(mail_filter_rename_uri), (mail_filter_delete_uri):
* mail-tools.c (mail_tool_get_local_movemail_path):
* mail-vfolder.c (mail_vfolder_delete_uri), (mail_vfolder_rename_uri),
(store_folder_deleted), (store_folder_renamed),
(vfolder_load_storage), (vfolder_revert),
(em_vfolder_editor_response), (edit_rule_response),
(new_rule_clicked):
* em-folder-browser.c (emfb_search_search_activated):
* em-folder-tree.c (em_folder_tree_new):
* mail-ops.c (uid_cachename_hack), (empty_trash_exec):
* em-folder-view.c (emfv_setup_view_instance):
* em-utils.c (em_filter_editor_response), (em_utils_edit_filters):
* importers/mail-importer.c (import_folders_rec):
* mail-folder-cache.c (rename_folders):
* em-format-html.c (em_format_html_get_type):
* mail-session.c (main_get_filter_driver):
* mail-config.c (gconf_mime_types_changed), (uri_to_evname),
(mail_config_folder_to_cachename), (get_new_signature_filename):
Adapt to new meaning of mail_component_peek_base_directory().
* mail-component.c (mail_component_init):
Add back initialization of priv->base_directory. Accidentally
removed it somehow in last commit.
svn path=/trunk/; revision=35179
Diffstat (limited to 'mail/mail-config.c')
-rw-r--r-- | mail/mail-config.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/mail/mail-config.c b/mail/mail-config.c index 4828187a5b..3e34ea100d 100644 --- a/mail/mail-config.c +++ b/mail/mail-config.c @@ -371,17 +371,13 @@ gconf_mime_types_changed (GConfClient *client, guint cnxn_id, void mail_config_init (void) { - const gchar *base_dir; - if (config) return; - base_dir = mail_component_peek_base_directory (NULL); - config = g_new0 (MailConfig, 1); config->gconf = gconf_client_get_default (); config->mime_types = g_ptr_array_new (); - config->gtkrc = g_build_filename (base_dir, "config", "gtkrc-mail-fonts", NULL); + config->gtkrc = g_build_filename (e_get_user_data_dir (), "mail", "config", "gtkrc-mail-fonts", NULL); mail_config_clear (); @@ -882,9 +878,9 @@ uri_to_evname (const char *uri, const char *prefix) e_filename_make_safe (safe); /* blah, easiest thing to do */ if (prefix[0] == '*') - tmp = g_strdup_printf ("%s/mail/%s%s.xml", base_directory, prefix + 1, safe); + tmp = g_strdup_printf ("%s/%s%s.xml", base_directory, prefix + 1, safe); else - tmp = g_strdup_printf ("%s/mail/%s%s", base_directory, prefix, safe); + tmp = g_strdup_printf ("%s/%s%s", base_directory, prefix, safe); g_free (safe); return tmp; } @@ -1002,7 +998,7 @@ mail_config_folder_to_cachename (CamelFolder *folder, const char *prefix) url = mail_config_folder_to_safe_url (folder); basename = g_strdup_printf ("%s%s", prefix, url); - filename = g_build_filename (evolution_dir, "mail", "config", basename, NULL); + filename = g_build_filename (evolution_dir, "config", basename, NULL); g_free (basename); g_free (url); @@ -1023,7 +1019,7 @@ get_new_signature_filename (void) struct stat st; int i; - base_directory = mail_component_peek_base_directory (mail_component_peek ()); + base_directory = e_get_user_data_dir (); filename = g_build_filename (base_directory, "signatures", NULL); if (g_lstat (filename, &st)) { if (errno == ENOENT) { |