diff options
author | infirit <[email protected]> | 2014-11-19 15:20:34 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-11-19 15:44:09 +0100 |
commit | 10d6972d37355198a63309142ae9875fdcc222f6 (patch) | |
tree | eb447d06bb1a668f241c44c07895622558f3ab5b /src/dlg-add-folder.c | |
parent | 5591da29a5027de4f8ec5c967d2d0ff6ba579af0 (diff) | |
download | engrampa-10d6972d37355198a63309142ae9875fdcc222f6.tar.bz2 engrampa-10d6972d37355198a63309142ae9875fdcc222f6.tar.xz |
use g_get_user_config_dir instead of using .config/mate
Also provide an automatic migration mechanism.
Based on FR commit: 7fd220a834f16b260da8f5ddc1250c43b9dbefd8
From: Paolo Bacchilega <[email protected]>
Diffstat (limited to 'src/dlg-add-folder.c')
-rw-r--r-- | src/dlg-add-folder.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/dlg-add-folder.c b/src/dlg-add-folder.c index cac8c7f..3eb4e91 100644 --- a/src/dlg-add-folder.c +++ b/src/dlg-add-folder.c @@ -451,7 +451,7 @@ dlg_add_folder_load_options (DialogData *data, gboolean recursive; gboolean no_symlinks; - options_dir = get_home_relative_file (RC_OPTIONS_DIR); + options_dir = get_user_config_subdirectory (ADD_FOLDER_OPTIONS_DIR, TRUE); options_file = g_file_get_child (options_dir, name); file_path = g_file_get_path (options_file); key_file = g_key_file_new (); @@ -712,7 +712,7 @@ aod_update_option_list (LoadOptionsDialogData *aod_data) gtk_list_store_clear (list_store); - options_dir = get_home_relative_file (RC_OPTIONS_DIR); + options_dir = get_user_config_subdirectory (ADD_FOLDER_OPTIONS_DIR, TRUE); make_directory_tree (options_dir, 0700, NULL); file_enum = g_file_enumerate_children (options_dir, G_FILE_ATTRIBUTE_STANDARD_NAME, 0, NULL, &err); @@ -774,7 +774,7 @@ aod_remove_cb (GtkWidget *widget, gtk_tree_model_get (aod_data->aod_model, &iter, 1, &filename, -1); gtk_list_store_remove (GTK_LIST_STORE (aod_data->aod_model), &iter); - options_dir = get_home_relative_file (RC_OPTIONS_DIR); + options_dir = get_user_config_subdirectory (ADD_FOLDER_OPTIONS_DIR, TRUE); options_file = g_file_get_child (options_dir, filename); if (! g_file_delete (options_file, NULL, &error)) { g_warning ("could not delete the options: %s", error->message); @@ -881,7 +881,7 @@ save_options_cb (GtkWidget *w, GFile *options_file; char *opt_filename; - options_dir = get_home_relative_file (RC_OPTIONS_DIR); + options_dir = get_user_config_subdirectory (ADD_FOLDER_OPTIONS_DIR, TRUE); make_directory_tree (options_dir, 0700, NULL); opt_filename = _gtk_request_dialog_run ( |