[gnome-power-manager] Bug 578545 – preload gconf tree /apps/gnome-power-manager recursively



commit 3399ac5d1f5d2a18ade826eb839b584349f21a4d
Author: Behdad Esfahbod <behdad behdad org>
Date:   Tue Apr 21 11:37:49 2009 -0400

    Bug 578545 â?? preload gconf tree /apps/gnome-power-manager recursively
---
 src/gpm-backlight.c  |    2 +-
 src/gpm-manager.c    |    2 +-
 src/gpm-prefs-core.c |    2 +-
 src/gpm-tray-icon.c  |    2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/gpm-backlight.c b/src/gpm-backlight.c
index 0b0e353..bb52a54 100644
--- a/src/gpm-backlight.c
+++ b/src/gpm-backlight.c
@@ -762,7 +762,7 @@ gpm_backlight_init (GpmBacklight *backlight)
 	backlight->priv->conf = gconf_client_get_default ();
 
 	/* watch gnome-power-manager keys */
-	gconf_client_add_dir (backlight->priv->conf, GPM_CONF_DIR, GCONF_CLIENT_PRELOAD_NONE, NULL);
+	gconf_client_add_dir (backlight->priv->conf, GPM_CONF_DIR, GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
 	gconf_client_notify_add (backlight->priv->conf, GPM_CONF_DIR,
 				 (GConfClientNotifyFunc) gpm_conf_gconf_key_changed_cb,
 				 backlight, NULL, NULL);
diff --git a/src/gpm-manager.c b/src/gpm-manager.c
index 41532a1..62d2b61 100644
--- a/src/gpm-manager.c
+++ b/src/gpm-manager.c
@@ -1628,7 +1628,7 @@ gpm_manager_init (GpmManager *manager)
 
 	/* watch gnome-power-manager keys */
 	gconf_client_add_dir (manager->priv->conf, GPM_CONF_DIR,
-			      GCONF_CLIENT_PRELOAD_NONE, NULL);
+			      GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
 	gconf_client_notify_add (manager->priv->conf, GPM_CONF_DIR,
 				 (GConfClientNotifyFunc) gpm_conf_gconf_key_changed_cb,
 				 manager, NULL, NULL);
diff --git a/src/gpm-prefs-core.c b/src/gpm-prefs-core.c
index 88ec19e..89b6e71 100644
--- a/src/gpm-prefs-core.c
+++ b/src/gpm-prefs-core.c
@@ -1044,7 +1044,7 @@ gpm_prefs_init (GpmPrefs *prefs)
 	prefs->priv->conf = gconf_client_get_default ();
 	/* watch gnome-power-manager keys */
 	gconf_client_add_dir (prefs->priv->conf, GPM_CONF_DIR,
-			      GCONF_CLIENT_PRELOAD_NONE, NULL);
+			      GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
 	gconf_client_notify_add (prefs->priv->conf, GPM_CONF_DIR,
 				 (GConfClientNotifyFunc) gpm_conf_gconf_key_changed_cb,
 				 prefs, NULL, NULL);
diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c
index 794d52a..1b51db0 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -636,7 +636,7 @@ gpm_tray_icon_init (GpmTrayIcon *icon)
 	icon->priv->conf = gconf_client_get_default ();
 	/* watch gnome-power-manager keys */
 	gconf_client_add_dir (icon->priv->conf, GPM_CONF_DIR,
-			      GCONF_CLIENT_PRELOAD_NONE, NULL);
+			      GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
 	gconf_client_notify_add (icon->priv->conf, GPM_CONF_DIR,
 				 (GConfClientNotifyFunc) gpm_conf_gconf_key_changed_cb,
 				 icon, NULL, NULL);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]