diff options
author | Andy Hertzfeld <andy@src.gnome.org> | 2000-10-26 21:21:05 +0000 |
---|---|---|
committer | Andy Hertzfeld <andy@src.gnome.org> | 2000-10-26 21:21:05 +0000 |
commit | 46c53fcda82b7518f17e143756387fc46710eb4b (patch) | |
tree | 0b0a196d216911928e59c52d291e773177eff69c /libnautilus-extensions/nautilus-global-preferences.c | |
parent | fc0ee93f44790ee8845eba473a6ed7ac00b45e39 (diff) | |
download | nautilus-46c53fcda82b7518f17e143756387fc46710eb4b.tar.gz |
fixed bug 2814, move "built-in bookmarks" checkbox from the edit bookmarks
fixed bug 2814, move "built-in bookmarks" checkbox from the
edit bookmarks window to preferences/navigation.
* libnautilus-extensions/nautilus-global-preferences.c:
(global_preferences_create_dialog), (global_preferences_register):
added a checkbox to control the "hide built-in bookmarks" preference
* libnautilus-extensions/nautilus-global-preferences.h:
renamed preference path so the built-in bookmarks preference can
be in the preferences window
* src/nautilus-bookmarks-window.c: (create_bookmarks_window),
(repopulate):
removed the built-in bookmarks checkbox from the edit bookmarks
window
Diffstat (limited to 'libnautilus-extensions/nautilus-global-preferences.c')
-rw-r--r-- | libnautilus-extensions/nautilus-global-preferences.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/libnautilus-extensions/nautilus-global-preferences.c b/libnautilus-extensions/nautilus-global-preferences.c index a6b22a3a3..76b9c58a4 100644 --- a/libnautilus-extensions/nautilus-global-preferences.c +++ b/libnautilus-extensions/nautilus-global-preferences.c @@ -325,6 +325,14 @@ global_preferences_create_dialog (void) NAUTILUS_PREFERENCES_HTTP_PROXY_PORT, NAUTILUS_PREFERENCE_ITEM_EDITABLE_STRING); + /* built-in bookmarks */ + nautilus_preferences_pane_add_group (NAUTILUS_PREFERENCES_PANE (navigation_pane), + _("Built-in Bookmarks")); + nautilus_preferences_pane_add_item_to_nth_group (NAUTILUS_PREFERENCES_PANE (navigation_pane), + 2, + NAUTILUS_PREFERENCES_HIDE_BUILT_IN_BOOKMARKS, + NAUTILUS_PREFERENCE_ITEM_BOOLEAN); + /* all done */ return prefs_dialog; @@ -977,8 +985,13 @@ global_preferences_register (void) _("Can add Content"), FALSE, TRUE, - TRUE); - + TRUE); + /* built-in bookmarks */ + global_preferences_register_boolean_with_defaults (NAUTILUS_PREFERENCES_HIDE_BUILT_IN_BOOKMARKS, + _("Don't include the built-in bookmarks"), + FALSE, + FALSE, + FALSE); { char *user_main_directory; |