[Xfce4-commits] [apps/mousepad] 09/45: Use existing config directory for GSettings keyfile backend
noreply at xfce.org
noreply at xfce.org
Fri Jul 11 13:03:14 CEST 2014
This is an automated email from the git hooks/post-receive script.
mbrush pushed a commit to branch master
in repository apps/mousepad.
commit 011a2e8d8019d2b5deffac71726c47afeac56b5d
Author: Matthew Brush <mbrush at codebrainz.ca>
Date: Sun Jul 6 16:02:43 2014 -0700
Use existing config directory for GSettings keyfile backend
Also add scope/block to avoid C89 warning about mixing code and
declarations.
---
mousepad/mousepad-settings.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/mousepad/mousepad-settings.c b/mousepad/mousepad-settings.c
index 64035e4..d80bf9e 100644
--- a/mousepad/mousepad-settings.c
+++ b/mousepad/mousepad-settings.c
@@ -127,17 +127,19 @@ mousepad_settings_get_default (void)
mousepad_settings_update_gsettings_schema_dir ();
#ifndef MOUSEPAD_GSETTINGS_USE_DBUS
+{
gchar *conf_file;
/* Path inside user's config directory */
conf_file = g_build_filename (g_get_user_config_dir (),
- "mousepad",
+ "Mousepad",
"settings.conf",
NULL);
/* Always use the keyfile backend */
backend = g_keyfile_settings_backend_new (conf_file, "/", NULL);
g_free (conf_file);
+}
#else
backend = g_settings_backend_get_default ();
#endif
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list