settings: Make the keyfile backend parameterless

Make it possible to instantiate a keyfile settings backend
without specifying parameters, by turning the arguments to
the new() function into construct-only properties. If no
filename is specified, default to
$XDG_CONFIG_HOME/glib-2.0/settings/keyfile
This commit is contained in:
Matthias Clasen
2018-12-19 19:58:16 -05:00
parent 3fe6f2a44f
commit 26c8b29ee1
2 changed files with 199 additions and 55 deletions

View File

@@ -87,6 +87,8 @@ GType g_null_settings_backend_get_type (void);
GType g_memory_settings_backend_get_type (void);
GType g_keyfile_settings_backend_get_type (void);
#ifdef HAVE_COCOA
GType g_nextstep_settings_backend_get_type (void);
#endif