[nautilus] Create the global nautilus_preferences GSettings object



commit 096b906da1e22b9ece5e568f195961ac40cae542
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Jul 21 15:11:50 2010 +0200

    Create the global nautilus_preferences GSettings object

 libnautilus-private/nautilus-global-preferences.c |    2 ++
 libnautilus-private/nautilus-global-preferences.h |    4 ++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-global-preferences.c b/libnautilus-private/nautilus-global-preferences.c
index 176896c..cf64609 100644
--- a/libnautilus-private/nautilus-global-preferences.c
+++ b/libnautilus-private/nautilus-global-preferences.c
@@ -823,6 +823,8 @@ nautilus_global_preferences_init (void)
 		eel_preferences_monitor_directory (EXTRA_MONITOR_PATHS[i]);
 	}
 
+	nautilus_preferences = g_settings_new("org.gnome.nautilus.preferences");
+
 	/* Set up storage for values accessed in this file */
 	eel_preferences_add_callback (NAUTILUS_PREFERENCES_ICON_VIEW_DEFAULT_SORT_ORDER_OR_MANUAL_LAYOUT,
 				      default_icon_view_sort_order_or_manual_layout_changed_callback, 
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h
index 2fefabb..559d49e 100644
--- a/libnautilus-private/nautilus-global-preferences.h
+++ b/libnautilus-private/nautilus-global-preferences.h
@@ -27,6 +27,7 @@
 #define NAUTILUS_GLOBAL_PREFERENCES_H
 
 #include <eel/eel-preferences.h>
+#include <gio/gio.h>
 
 G_BEGIN_DECLS
 
@@ -229,6 +230,9 @@ typedef enum
 
 void nautilus_global_preferences_init                      (void);
 char *nautilus_global_preferences_get_default_folder_viewer_preference_as_iid (void);
+
+GSettings *nautilus_preferences;
+
 G_END_DECLS
 
 #endif /* NAUTILUS_GLOBAL_PREFERENCES_H */



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