summaryrefslogtreecommitdiff
path: root/gsettings
diff options
context:
space:
mode:
authorRyan Lortie <desrt@desrt.ca>2012-07-10 13:58:03 -0400
committerRyan Lortie <desrt@desrt.ca>2012-07-10 13:58:03 -0400
commit4860be9319e971da6a21fe9f0e83a86b2581314e (patch)
tree9fcc99e56072ae39005814f35b5c5babc44f7659 /gsettings
parent2f86e0288643ec2024bc8f32a5c287b88e82d7ab (diff)
downloaddconf-4860be9319e971da6a21fe9f0e83a86b2581314e.tar.gz
Reimplement sync() functionality
Add dconf_engine_sync() that does the same thing as the code in the GSettings backend used to do, in a cleaner way. Update the GSettings backend to use the new call. Add a new call to DConfClient wrapping the engine call as well.
Diffstat (limited to 'gsettings')
-rw-r--r--gsettings/dconfsettingsbackend.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gsettings/dconfsettingsbackend.c b/gsettings/dconfsettingsbackend.c
index 32b2cab..11c123c 100644
--- a/gsettings/dconfsettingsbackend.c
+++ b/gsettings/dconfsettingsbackend.c
@@ -135,7 +135,9 @@ dconf_settings_backend_unsubscribe (GSettingsBackend *backend,
static void
dconf_settings_backend_sync (GSettingsBackend *backend)
{
- /* XXX implement sync */
+ DConfSettingsBackend *dcsb = (DConfSettingsBackend *) backend;
+
+ dconf_engine_sync (dcsb->engine);
}
static void