mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
Create the global nautilus_preferences GSettings object
This commit is contained in:
parent
c70466a133
commit
096b906da1
2 changed files with 6 additions and 0 deletions
|
@ -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,
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue