diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-07-15 12:31:33 -0400 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-07-15 12:39:34 -0400 |
commit | 301f6cdda6e3ca520cbe4bb568c7922f39ff8887 (patch) | |
tree | 223627e5e00eaf666628d8d01b91384e73e70fd0 /gsettings | |
parent | c9e5642b2b643b8e75a7fa24d8527c4c956f048b (diff) | |
download | dconf-301f6cdda6e3ca520cbe4bb568c7922f39ff8887.tar.gz |
engine: bring back origin_tag logic
The GSettings backend still wants to use this and it does us no harm to
have it on the engine API (which is only visible internally).
Adjust the various consumers of the engine to the new API.
Thanks to Rui Matos for reminding me about this...
Diffstat (limited to 'gsettings')
-rw-r--r-- | gsettings/dconfsettingsbackend.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/gsettings/dconfsettingsbackend.c b/gsettings/dconfsettingsbackend.c index 11c123c..1725d16 100644 --- a/gsettings/dconfsettingsbackend.c +++ b/gsettings/dconfsettingsbackend.c @@ -63,7 +63,7 @@ dconf_settings_backend_write (GSettingsBackend *backend, change = dconf_changeset_new (); dconf_changeset_set (change, key, value); - success = dconf_engine_change_fast (dcsb->engine, change, NULL); + success = dconf_engine_change_fast (dcsb->engine, change, origin_tag, NULL); dconf_changeset_unref (change); return success; @@ -91,7 +91,7 @@ dconf_settings_backend_write_tree (GSettingsBackend *backend, change= dconf_changeset_new (); g_tree_foreach (tree, dconf_settings_backend_add_to_changeset, change); - success = dconf_engine_change_fast (dcsb->engine, change, NULL); + success = dconf_engine_change_fast (dcsb->engine, change, origin_tag, NULL); dconf_changeset_unref (change); return success; @@ -213,6 +213,7 @@ dconf_engine_change_notify (DConfEngine *engine, const gchar *prefix, const gchar * const *changes, const gchar *tag, + gpointer origin_tag, gpointer user_data) { GWeakRef *weak_ref = user_data; @@ -229,10 +230,10 @@ dconf_engine_change_notify (DConfEngine *engine, if (changes[1] == NULL) { if (g_str_has_suffix (prefix, "/")) - g_settings_backend_path_changed (G_SETTINGS_BACKEND (dcsb), prefix, NULL); + g_settings_backend_path_changed (G_SETTINGS_BACKEND (dcsb), prefix, origin_tag); else - g_settings_backend_changed (G_SETTINGS_BACKEND (dcsb), prefix, NULL); + g_settings_backend_changed (G_SETTINGS_BACKEND (dcsb), prefix, origin_tag); } else - g_settings_backend_keys_changed (G_SETTINGS_BACKEND (dcsb), prefix, changes, NULL); + g_settings_backend_keys_changed (G_SETTINGS_BACKEND (dcsb), prefix, changes, origin_tag); } |