summaryrefslogtreecommitdiff
path: root/plugins/font
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-08 14:12:24 -0300
committerPerberos <[email protected]>2011-12-08 14:12:24 -0300
commit80bf2f97b9d1c11592c29836b3f960d788464987 (patch)
tree0cba762857ec1df233b2b56a90d2da37cd0f3c93 /plugins/font
parent283de05cf3b8bed9dcde9e80875b860520de392a (diff)
downloadmate-settings-daemon-80bf2f97b9d1c11592c29836b3f960d788464987.tar.bz2
mate-settings-daemon-80bf2f97b9d1c11592c29836b3f960d788464987.tar.xz
using .config instead of .mate2
Diffstat (limited to 'plugins/font')
-rw-r--r--plugins/font/gsd-font-manager.c39
1 files changed, 20 insertions, 19 deletions
diff --git a/plugins/font/gsd-font-manager.c b/plugins/font/gsd-font-manager.c
index ed33e1c..93d9279 100644
--- a/plugins/font/gsd-font-manager.c
+++ b/plugins/font/gsd-font-manager.c
@@ -66,7 +66,7 @@ update_property (GString *props, const gchar* key, const gchar* value)
needle_len = strlen (needle);
if (g_str_has_prefix (props->str, needle))
found = props->str;
- else
+ else
found = strstr (props->str, needle);
if (found) {
@@ -132,25 +132,26 @@ load_xcursor_theme (MateConfClient *client)
mate_settings_profile_end (NULL);
}
-static char*
-setup_dir (const char *font_dir_name, gboolean create)
+static char* setup_dir(const char* font_dir_name, gboolean create)
{
- char *font_dir;
-
- font_dir = g_build_path (G_DIR_SEPARATOR_S, g_get_home_dir (), ".mate2", "share", font_dir_name, NULL);
-
- if (create) {
- if (g_mkdir_with_parents (font_dir, 0755) != 0) {
- g_warning ("Cannot create needed directory \"%s\".", font_dir);
- g_free (font_dir);
- font_dir = NULL;
- }
- } else if (! g_file_test (font_dir, G_FILE_TEST_EXISTS)) {
- g_free (font_dir);
- font_dir = NULL;
- }
-
- return font_dir;
+ char* font_dir = g_build_path(G_DIR_SEPARATOR_S, g_get_home_dir(), ".config", "mate", "share", font_dir_name, NULL);
+
+ if (create)
+ {
+ if (g_mkdir_with_parents(font_dir, 0755) != 0)
+ {
+ g_warning("Cannot create needed directory \"%s\".", font_dir);
+ g_free(font_dir);
+ font_dir = NULL;
+ }
+ }
+ else if (!g_file_test(font_dir, G_FILE_TEST_EXISTS))
+ {
+ g_free (font_dir);
+ font_dir = NULL;
+ }
+
+ return font_dir;
}
static char *