pidgin/pidgin

Move some Pidgin things to XDG directories.

2019-09-28, Elliott Sales de Andrade
10db0a477198
Parents 69aecf36a4e0
Children e843e8fab70c
Move some Pidgin things to XDG directories.
--- a/pidgin/gtkutils.c Mon Oct 07 03:26:15 2019 -0400
+++ b/pidgin/gtkutils.c Sat Sep 28 04:34:57 2019 -0400
@@ -608,8 +608,7 @@
{
char *filename = NULL;
- filename = g_build_filename(purple_user_dir(), G_DIR_SEPARATOR_S,
- "accels", NULL);
+ filename = g_build_filename(purple_config_dir(), "accels", NULL);
purple_debug(PURPLE_DEBUG_MISC, "accels", "saving accels to %s\n", filename);
gtk_accel_map_save(filename);
g_free(filename);
@@ -623,8 +622,7 @@
{
char *filename = NULL;
- filename = g_build_filename(purple_user_dir(), G_DIR_SEPARATOR_S,
- "accels", NULL);
+ filename = g_build_filename(purple_config_dir(), "accels", NULL);
gtk_accel_map_load(filename);
g_free(filename);
}
--- a/pidgin/libpidgin.c Mon Oct 07 03:26:15 2019 -0400
+++ b/pidgin/libpidgin.c Sat Sep 28 04:34:57 2019 -0400
@@ -582,7 +582,7 @@
}
}
- search_path = g_build_filename(purple_user_dir(), "gtk-3.0.css", NULL);
+ search_path = g_build_filename(purple_config_dir(), "gtk-3.0.css", NULL);
provider = gtk_css_provider_new();
gui_check = gtk_css_provider_load_from_path(provider, search_path, &error);
--- a/pidgin/plugins/spellchk.c Mon Oct 07 03:26:15 2019 -0400
+++ b/pidgin/plugins/spellchk.c Sat Sep 28 04:34:57 2019 -0400
@@ -1785,7 +1785,7 @@
gboolean complete = TRUE;
gboolean case_sensitive = FALSE;
- buf = g_build_filename(purple_user_dir(), "dict", NULL);
+ buf = g_build_filename(purple_config_dir(), "dict", NULL);
if (!(g_file_get_contents(buf, &ibuf, &size, NULL) && ibuf)) {
ibuf = g_strdup(defaultconf);
size = strlen(defaultconf);
@@ -2080,7 +2080,7 @@
} while (gtk_tree_model_iter_next(GTK_TREE_MODEL(model), &iter));
}
- purple_util_write_data_to_file("dict", data->str, -1);
+ purple_util_write_data_to_config_file("dict", data->str, -1);
g_string_free(data, TRUE);
}