Create the global nautilus_preferences GSettings object

This commit is contained in:
Alexander Larsson 2010-07-21 15:11:50 +02:00
parent c70466a133
commit 096b906da1
2 changed files with 6 additions and 0 deletions

View file

@ -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,

View file

@ -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 */