diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-07-28 22:46:43 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-07-28 22:46:43 +0000 |
commit | 6beffbf595a83c1d30a4f91aa01a2680a8f0d784 (patch) | |
tree | 1df5cf5a9f23bd9e66e097136be83a747153dc3d /libnautilus-private/nautilus-global-preferences.h | |
parent | 6269dd6b874957d203d43f50e2447b18a19f143f (diff) | |
download | nautilus-6beffbf595a83c1d30a4f91aa01a2680a8f0d784.tar.gz |
Finished task 1795 (Allow hiding of the pre-canned bookmarks)
* libnautilus-extensions/nautilus-global-preferences.h:
#define NAUTILUS_PREFERENCES_SHOW_BUILT_IN_BOOKMARKS
* src/nautilus-bookmarks-window.c:
(create_bookmarks_window): Put "Include built-in bookmarks in menu"
checkbox into Edit Bookmarks window; wire it up.
(synch_built_in_bookmarks_preference_and_checkbox): New function
that checks the state of the preference against the state of
the checkbox and updates one to match the other if necessary.
(update_built_in_bookmarks_preference_to_match_checkbox),
(update_built_in_bookmarks_checkbox_to_match_preference): New
functions, covers for synch_... that lean one way or the other.
* src/nautilus-window-private.h: Renamed field in Details from
"refresh_bookmarks_menu_idle_id" to "refresh_dynamic_bookmarks_idle_id"
for clarity since it no longer refreshes all bookmarks.
* src/nautilus-window-menus.c:
(append_bookmark_to_menu), (remove_bookmarks_after),
(nautilus_window_remove_bookmarks_menu_callback),
(refresh_dynamic_bookmarks),
(refresh_dynamic_bookmarks_idle_callback),
(schedule_refresh_dynamic_bookmarks), (refresh_go_menu):
Renamed functions and variables to clarify which ones affect
all bookmarks and which ones affect only the dynamic bookmarks.
(append_dynamic_bookmarks): New function, extracted from
refresh_dynamic_bookmarks so it can be also called elsewhere.
(refresh_all_bookmarks): New function, clears away all bookmarks
before replacing the static (optionally, based on preference)
and dynamic (always) ones.
(nautilus_window_initialize_bookmarks_menu): refresh all bookmarks
and wire up to notice preference changes.
Diffstat (limited to 'libnautilus-private/nautilus-global-preferences.h')
-rw-r--r-- | libnautilus-private/nautilus-global-preferences.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnautilus-private/nautilus-global-preferences.h b/libnautilus-private/nautilus-global-preferences.h index 529e3f814..9b7d45f85 100644 --- a/libnautilus-private/nautilus-global-preferences.h +++ b/libnautilus-private/nautilus-global-preferences.h @@ -49,6 +49,7 @@ BEGIN_GNOME_DECLS /* Preferences not (currently?) displayed in dialog */ #define NAUTILUS_PREFERENCES_ICON_VIEW_TEXT_ATTRIBUTE_NAMES "icon_view/text_attribute_names" #define NAUTILUS_PREFERENCES_SHOW_REAL_FILE_NAME "preferences/show_real_file_name" +#define NAUTILUS_PREFERENCES_SHOW_BUILT_IN_BOOKMARKS "preferences/show_built_in_bookmarks" /* Single/Double click preference */ #define NAUTILUS_PREFERENCES_CLICK_POLICY "preferences/click_policy" |