[gnome-session] Reduce GConf roundtrips



commit 06bb9270b1797485267bad78042ef39ec91c8282
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 23 21:42:59 2009 -0400

    Reduce GConf roundtrips
    
    Preload the /desktop/gnome/session/ directory, since we access most
    keys during startup.  (#578537)
---
 gnome-session/gsm-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gnome-session/gsm-manager.c b/gnome-session/gsm-manager.c
index 45fa4fd..3679a57 100644
--- a/gnome-session/gsm-manager.c
+++ b/gnome-session/gsm-manager.c
@@ -2349,7 +2349,7 @@ gsm_manager_init (GsmManager *manager)
         /* GConf setup */
         gconf_client_add_dir (manager->priv->gconf_client,
                               KEY_DESKTOP_DIR,
-                              GCONF_CLIENT_PRELOAD_NONE, NULL);
+                              GCONF_CLIENT_PRELOAD_RECURSIVE, NULL);
         gconf_client_add_dir (manager->priv->gconf_client,
                               KEY_LOCKDOWN_DIR,
                               GCONF_CLIENT_PRELOAD_NONE, NULL);



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