[gconf] Adapt to gsettings API changes (glib, d5bd53)
- From: Frederic Peters <fpeters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gconf] Adapt to gsettings API changes (glib, d5bd53)
- Date: Sat, 24 Jul 2010 13:14:44 +0000 (UTC)
commit 2c703cdc0c2c0b31604d49d94dacc019d4ffa72f
Author: Frédéric Péters <fpeters 0d be>
Date: Sat Jul 24 15:12:22 2010 +0200
Adapt to gsettings API changes (glib, d5bd53)
gsettings/gconfsettingsbackend.c | 19 ++-----------------
1 files changed, 2 insertions(+), 17 deletions(-)
---
diff --git a/gsettings/gconfsettingsbackend.c b/gsettings/gconfsettingsbackend.c
index e94d555..6e6f52f 100644
--- a/gsettings/gconfsettingsbackend.c
+++ b/gsettings/gconfsettingsbackend.c
@@ -726,7 +726,7 @@ gconf_settings_backend_remove_ignore_notifications (GConfChangeSet *change
}
static gboolean
-gconf_settings_backend_write_keys (GSettingsBackend *backend,
+gconf_settings_backend_write_tree (GSettingsBackend *backend,
GTree *tree,
gpointer origin_tag)
{
@@ -783,20 +783,6 @@ gconf_settings_backend_reset (GSettingsBackend *backend,
g_settings_backend_changed (backend, key, origin_tag);
}
-static void
-gconf_settings_backend_reset_path (GSettingsBackend *backend,
- const gchar *path,
- gpointer origin_tag)
-{
- GConfSettingsBackend *gconf = GCONF_SETTINGS_BACKEND (backend);
-
- /* We have no way to know if it was completely successful or if it
- * completely failed, or if only some keys were unset, so we just send
- * one big changed signal. */
- gconf_client_recursive_unset (gconf->priv->client, path, 0, NULL);
- g_settings_backend_path_changed (backend, path, origin_tag);
-}
-
static gboolean
gconf_settings_backend_get_writable (GSettingsBackend *backend,
const gchar *name)
@@ -922,9 +908,8 @@ gconf_settings_backend_class_init (GConfSettingsBackendClass *class)
backend_class->read = gconf_settings_backend_read;
backend_class->write = gconf_settings_backend_write;
- backend_class->write_keys = gconf_settings_backend_write_keys;
+ backend_class->write_tree = gconf_settings_backend_write_tree;
backend_class->reset = gconf_settings_backend_reset;
- backend_class->reset_path = gconf_settings_backend_reset_path;
backend_class->get_writable = gconf_settings_backend_get_writable;
backend_class->subscribe = gconf_settings_backend_subscribe;
backend_class->unsubscribe = gconf_settings_backend_unsubscribe;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]