summaryrefslogtreecommitdiff
path: root/libnautilus-extensions/nautilus-global-preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'libnautilus-extensions/nautilus-global-preferences.c')
-rw-r--r--libnautilus-extensions/nautilus-global-preferences.c33
1 files changed, 32 insertions, 1 deletions
diff --git a/libnautilus-extensions/nautilus-global-preferences.c b/libnautilus-extensions/nautilus-global-preferences.c
index 2ae55a2d5..fd7d434b1 100644
--- a/libnautilus-extensions/nautilus-global-preferences.c
+++ b/libnautilus-extensions/nautilus-global-preferences.c
@@ -220,6 +220,11 @@ global_preferences_install_descriptions (void)
nautilus_preferences_set_description (NAUTILUS_PREFERENCES_HOME_URI,
_("Location:"));
+
+ nautilus_preferences_set_description (NAUTILUS_PREFERENCES_LOOKUP_ANNOTATIONS,
+ _("Look-up remote file annotations"));
+ nautilus_preferences_set_description (NAUTILUS_PREFERENCES_DISPLAY_ANNOTATIONS,
+ _("Display file annotations"));
global_preferences_install_sidebar_panel_descriptions ();
@@ -362,6 +367,14 @@ global_preferences_install_defaults (void)
NAUTILUS_USER_LEVEL_NOVICE,
FALSE);
+ nautilus_preferences_default_set_boolean (NAUTILUS_PREFERENCES_LOOKUP_ANNOTATIONS,
+ NAUTILUS_USER_LEVEL_NOVICE,
+ FALSE);
+
+ nautilus_preferences_default_set_boolean (NAUTILUS_PREFERENCES_DISPLAY_ANNOTATIONS,
+ NAUTILUS_USER_LEVEL_NOVICE,
+ FALSE);
+
/* Add the gnome-vfs path to the list of monitored directories - for proxy settings */
nautilus_preferences_monitor_directory (SYSTEM_GNOME_VFS_PATH);
@@ -506,7 +519,8 @@ global_preferences_create_dialog (void)
GtkWidget *appearance_pane;
GtkWidget *tradeoffs_pane;
GtkWidget *navigation_pane;
-
+ GtkWidget *annotation_pane;
+
/*
* In the soon to come star trek future, the following widgetry
* might be either fetched from a glade file or generated from
@@ -760,6 +774,23 @@ global_preferences_create_dialog (void)
NAUTILUS_PREFERENCE_ITEM_SHORT_ENUM);
+ /* annotation preferences */
+
+ annotation_pane = nautilus_preferences_box_add_pane (preference_box,
+ _("Annotations"));
+
+ nautilus_preferences_pane_add_group (NAUTILUS_PREFERENCES_PANE (annotation_pane), _("File Annotations"));
+
+ nautilus_preferences_pane_add_item_to_nth_group (NAUTILUS_PREFERENCES_PANE (annotation_pane),
+ 0,
+ NAUTILUS_PREFERENCES_LOOKUP_ANNOTATIONS,
+ NAUTILUS_PREFERENCE_ITEM_BOOLEAN);
+
+ nautilus_preferences_pane_add_item_to_nth_group (NAUTILUS_PREFERENCES_PANE (annotation_pane),
+ 0,
+ NAUTILUS_PREFERENCES_DISPLAY_ANNOTATIONS,
+ NAUTILUS_PREFERENCE_ITEM_BOOLEAN);
+
/* Update the dialog so that the right items show up based on the current user level */
nautilus_preferences_dialog_update (NAUTILUS_PREFERENCES_DIALOG (prefs_dialog));