[nautilus] preferences: don't use GConfClient anymore
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] preferences: don't use GConfClient anymore
- Date: Mon, 31 Jan 2011 17:26:57 +0000 (UTC)
commit 389789e8f102f794780a2842e9506dc23ddd6a08
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Mon Jan 31 12:24:18 2011 -0500
preferences: don't use GConfClient anymore
libnautilus-private/nautilus-global-preferences.c | 14 --------------
libnautilus-private/nautilus-global-preferences.h | 3 ---
2 files changed, 0 insertions(+), 17 deletions(-)
---
diff --git a/libnautilus-private/nautilus-global-preferences.c b/libnautilus-private/nautilus-global-preferences.c
index 6ba2677..bb618c6 100644
--- a/libnautilus-private/nautilus-global-preferences.c
+++ b/libnautilus-private/nautilus-global-preferences.c
@@ -34,9 +34,6 @@
#include <eel/eel-string.h>
#include <glib/gi18n.h>
-/* Path for gnome-vfs preferences */
-static const char *EXTRA_MONITOR_PATHS[] = { "/desktop/gnome/background",
- NULL };
/*
* Public functions
*/
@@ -64,7 +61,6 @@ void
nautilus_global_preferences_init (void)
{
static gboolean initialized = FALSE;
- int i;
if (initialized) {
return;
@@ -81,14 +77,4 @@ nautilus_global_preferences_init (void)
nautilus_tree_sidebar_preferences = g_settings_new("org.gnome.nautilus.sidebar-panels.tree");
gnome_lockdown_preferences = g_settings_new("org.gnome.desktop.lockdown");
gnome_background_preferences = g_settings_new("org.gnome.desktop.background");
-
- nautilus_gconf_client = gconf_client_get_default ();
-
- /* Add monitors for any other GConf paths we have keys in */
- for (i=0; EXTRA_MONITOR_PATHS[i] != NULL; i++) {
- gconf_client_add_dir (nautilus_gconf_client,
- EXTRA_MONITOR_PATHS[i],
- GCONF_CLIENT_PRELOAD_ONELEVEL,
- NULL);
- }
}
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h
index 5e84d63..41fcbe0 100644
--- a/libnautilus-private/nautilus-global-preferences.h
+++ b/libnautilus-private/nautilus-global-preferences.h
@@ -28,7 +28,6 @@
#include <libnautilus-private/nautilus-global-preferences.h>
#include <gio/gio.h>
-#include <gconf/gconf-client.h>
G_BEGIN_DECLS
@@ -204,8 +203,6 @@ GSettings *nautilus_window_state;
GSettings *gnome_lockdown_preferences;
GSettings *gnome_background_preferences;
-GConfClient *nautilus_gconf_client;
-
G_END_DECLS
#endif /* NAUTILUS_GLOBAL_PREFERENCES_H */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]