[nautilus] Preload /desktop/gnome/background from gconf
- From: Alexander Larsson <alexl src gnome org>
- To: svn-commits-list gnome org
- Subject: [nautilus] Preload /desktop/gnome/background from gconf
- Date: Fri, 17 Apr 2009 09:34:56 -0400 (EDT)
commit 9c4c0254d4788ac1d7e10df30fc74cc2d64c5d09
Author: Alexander Larsson <alexl redhat com>
Date: Fri Apr 17 15:32:08 2009 +0200
Preload /desktop/gnome/background from gconf
We'll be reading a lot of background settings, so we want to preload
(and thus also add_dir) the gconf directory. (Fixes #578993)
---
libnautilus-private/nautilus-global-preferences.c | 9 ++++++---
1 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/libnautilus-private/nautilus-global-preferences.c b/libnautilus-private/nautilus-global-preferences.c
index 65c7997..614c10c 100644
--- a/libnautilus-private/nautilus-global-preferences.c
+++ b/libnautilus-private/nautilus-global-preferences.c
@@ -41,6 +41,7 @@
/* Path for gnome-vfs preferences */
static const char *EXTRA_MONITOR_PATHS[] = { "/desktop/gnome/file_views",
+ "/desktop/gnome/background",
NULL };
/* Forward declarations */
@@ -803,7 +804,7 @@ nautilus_global_preferences_init (void)
/* Install defaults */
global_preferences_install_defaults ();
- global_preferences_register_enumerations ();
+ global_preferences_register_enumerations ();
/* Add monitors for any other GConf paths we have keys in */
for (i=0; EXTRA_MONITOR_PATHS[i] != NULL; i++) {
@@ -811,7 +812,7 @@ nautilus_global_preferences_init (void)
}
/* Set up storage for values accessed in this file */
- eel_preferences_add_callback (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_ORDER_OR_MANUAL_LAYOUT,
+ eel_preferences_add_callback (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_ORDER_OR_MANUAL_LAYOUT,
default_icon_view_sort_order_or_manual_layout_changed_callback,
NULL);
@@ -820,7 +821,9 @@ nautilus_global_preferences_init (void)
GCONF_CLIENT_PRELOAD_ONELEVEL);
eel_gconf_preload_cache ("/desktop/gnome/file_views",
GCONF_CLIENT_PRELOAD_ONELEVEL);
-
+ eel_gconf_preload_cache ("/desktop/gnome/background",
+ GCONF_CLIENT_PRELOAD_ONELEVEL);
+
/* These are always needed for the desktop */
eel_gconf_preload_cache ("/apps/nautilus/desktop",
GCONF_CLIENT_PRELOAD_ONELEVEL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]