diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-08 10:38:54 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-08 10:38:54 -0400 |
commit | 1423837362f2253270e2f6ddd9f05ca1c10f8771 (patch) | |
tree | 15d92909e4301a056ee578f2681baaa699460f8d /engine/dconf-engine-source.c | |
parent | bffe7ec02ea515f85dfdb037da5d8d160be1199c (diff) | |
download | dconf-1423837362f2253270e2f6ddd9f05ca1c10f8771.tar.gz |
profile parser: firm up and document semantics
Clean up the profile parser, firming up the semantics of exactly what
happens in all cases. Document it.
There are now no more cases of aborting due to failures caused while
opening, parsing or initialising the profile. Lines of arbitrary length
are also supported.
Diffstat (limited to 'engine/dconf-engine-source.c')
-rw-r--r-- | engine/dconf-engine-source.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/engine/dconf-engine-source.c b/engine/dconf-engine-source.c index bf080da..2d0e2bd 100644 --- a/engine/dconf-engine-source.c +++ b/engine/dconf-engine-source.c @@ -86,7 +86,7 @@ dconf_engine_source_new (const gchar *description) break; default: - g_critical ("unknown dconf database description: %s", description); + g_warning ("unknown dconf database description: %s", description); return NULL; } @@ -98,3 +98,15 @@ dconf_engine_source_new (const gchar *description) return source; } + +DConfEngineSource * +dconf_engine_source_new_default (void) +{ + DConfEngineSource *source; + + source = g_malloc0 (dconf_engine_source_user_vtable.instance_size); + source->vtable = &dconf_engine_source_user_vtable; + source->name = g_strdup ("user"); + + return source; +} |