summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-global-preferences.h
diff options
context:
space:
mode:
authorRamiro Estrugo <ramiro@src.gnome.org>2000-08-31 15:54:01 +0000
committerRamiro Estrugo <ramiro@src.gnome.org>2000-08-31 15:54:01 +0000
commit944750f0f5bee22b29b502e113da8067159ad69f (patch)
tree4044651539c9535cd89d805aeadbb787c8742a8f /libnautilus-private/nautilus-global-preferences.h
parent7ffccab5a4510cd20ce2c857f7314d4b2ab77988 (diff)
downloadnautilus-944750f0f5bee22b29b502e113da8067159ad69f.tar.gz
Task 1229. Need support for preferences not coupled to user level.
* libnautilus-extensions/nautilus-global-preferences.c: (global_preferences_register): Add FIXME for the issue of setting default values for non user level specific preferences. * libnautilus-extensions/nautilus-global-preferences.h: Add blurb explaining preferences that are user level specific and those that arent. * libnautilus-extensions/nautilus-preferences.c: (preferences_hash_node_add_by_user_level_callbacks), (preferences_hash_node_add_callback), New functions to deal with callbacks for preferences that are coupled to the user level. (preferences_hash_node_check_changes_func), (preferences_make_make_gconf_key), (preferences_gconf_by_user_level_callback), (preferences_gconf_callback), (nautilus_preferences_add_callback), New functions to deal with callbacks for preferences that are NOT coupled to the user level. (nautilus_preferences_set_boolean), (nautilus_preferences_get_boolean), (nautilus_preferences_set_string_list), (nautilus_preferences_get_string_list), (nautilus_preferences_set_enum), (nautilus_preferences_get_enum), (nautilus_preferences_set), (nautilus_preferences_get): Add support for preferences that are not coupled to the user level. Compute gconf keys by taking the preference name into account. If it begins with a "/" (indicating it is fully qualified) then treat it as a regular gconf key and use it as is. Otherwise, use the user_level_manager to compute a key according to the current user level. * libnautilus-extensions/nautilus-preferences.h: Add documentation explaining the two different ways to specify preference names depending on whether they are user level specific or not. * src/nautilus-first-time-druid.c: (set_http_proxy): Use the non user level specific perferences support instead of poking gconf directly.
Diffstat (limited to 'libnautilus-private/nautilus-global-preferences.h')
-rw-r--r--libnautilus-private/nautilus-global-preferences.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h
index ee281cb6e..b920487bd 100644
--- a/libnautilus-private/nautilus-global-preferences.h
+++ b/libnautilus-private/nautilus-global-preferences.h
@@ -30,6 +30,24 @@
BEGIN_GNOME_DECLS
+/*
+ * The following preferences exist independently of the user level.
+ *
+ * Note that the configuration path is fully qualified
+ */
+
+/* Themes */
+#define NAUTILUS_PREFERENCES_THEME "/apps/nautilus/preferences/theme"
+
+
+/*
+ * The following preferences are coupled to the user level.
+ *
+ * Note that the configuration path does include the nautilus gconf
+ * prefix. The nautilus_preferences_* api will fill in the missing
+ * prefix according to the current user level.
+ */
+
/* Window options */
#define NAUTILUS_PREFERENCES_WINDOW_ALWAYS_NEW "preferences/window_always_new"
@@ -68,9 +86,6 @@ BEGIN_GNOME_DECLS
/* Directory view */
#define NAUTILUS_PREFERENCES_DIRECTORY_VIEW_FONT_FAMILY "directory-view/font_family"
-/* themes */
-#define NAUTILUS_PREFERENCES_THEME "preferences/theme"
-
/* File Indexing */
#define NAUTILUS_PREFERENCES_SEARCH_METHOD "preferences/also_do_slow_search"
#define NAUTILUS_PREFERENCES_SEARCH_BAR_TYPE "preferences/search_bar_type"