summaryrefslogtreecommitdiff
path: root/libnautilus
diff options
context:
space:
mode:
authorJohn Sullivan <sullivan@src.gnome.org>2000-08-24 00:39:30 +0000
committerJohn Sullivan <sullivan@src.gnome.org>2000-08-24 00:39:30 +0000
commit59d386e7cc0b79716e8974cb50af8155428c046e (patch)
treeab289982cc7d38f07018fa77116b0bf177187126 /libnautilus
parent411616b660aafe6d8357441abb4ac8f6a22d8581 (diff)
downloadnautilus-59d386e7cc0b79716e8974cb50af8155428c046e.tar.gz
More work on bug 1653 (new menu layout). Now there's a
permanent "View" menu that contains Refresh and zooming items and the icon view merges its stuff in there. The icon view now has a "Clean Up by Name" item to do a one-shot sort of icons in manual layout mode. * libnautilus-extensions/nautilus-icon-container.c: (key_press_event): * libnautilus-extensions/nautilus-list.c: (nautilus_list_key_press): Don't use any control-key combinations for type-select (this was blocking Control-= and others) * libnautilus/nautilus-bonobo-ui.h: Added #defines for View menu and placeholders in it. * src/file-manager/fm-desktop-icon-view.c: (fm_desktop_icon_view_initialize_class), (bump_zoom_level), (zoom_to_level), (restore_default_zoom_level), (can_zoom_in), (can_zoom_out): Override all zoom-related functions to do nothing, so you can't use keyboard equivalents or other trickery to zoom on the desktop. * src/file-manager/fm-icon-view.h: Define clean_up function pointer * src/file-manager/fm-icon-view.c: (set_sort_criterion): Just moved this function. (fm_icon_view_clean_up): New function, calls virtual function. (fm_icon_view_real_clean_up): New function, sorts one time by name. (clean_up_callback): New function, calls fm_icon_view_clean_up (compute_menu_item_info): Add clean up case (update_layout_menus): Update sensitivity of Clean Up item (get_next_position): New helper function to get a position for a Bonobo menu item based on the one you want to be after. Works around Bonobo bug where the last item's position is reported as -1. (fm_icon_view_merge_menus): Deploy get_next_position; get rid of Layout menu and redo items in View menu to match design in bug 1653. (fm_icon_view_initialize_class): Wire up clean_up function pointer * src/nautilus-window-menus.c: (view_menu_reload_callback): Renamed from go_menu_reload_callback (view_menu_zoom_in_callback), (view_menu_zoom_out_callback), (view_menu_zoom_normal_callback): New functions, used by zooming menu items. (nautilus_window_initialize_menus): Add View menu; move Reload to View menu and rename it Refresh; add zooming menu items. * src/nautilus-window-private.h: Add #defines for zooming menu item paths; add prototypes for nautilus_window_zoom_xxx functions. * src/nautilus-window.c: (nautilus_window_zoom_in), (nautilus_window_zoom_to_level), (nautilus_window_zoom_out), (nautilus_window_zoom_to_fit): Renamed these to better match new shared-between-files status, and reordered the parameters. (nautilus_window_constructed): use gtk_signal_connect_object with nautilus_window_zoom functions since their parameters have flipped. (nautilus_window_zoom_level_changed_callback): Set sensitivity of zooming menu items appropriately. * src/nautilus-window-manage-views.c: (nautilus_window_load_content_view): Desensitize the zoom menu items when we hide the zoom control. * src/file-manager/fm-directory-view.c: (fm_directory_view_real_create_background_context_menu_items): Change "Zoom to Default" to "Normal Size" in the context menu, to match terminology in View menu. * src/nautilus-window-toolbars.c: Rename Reload to Refresh to match menu item & new design
Diffstat (limited to 'libnautilus')
-rw-r--r--libnautilus/nautilus-bonobo-ui.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/libnautilus/nautilus-bonobo-ui.h b/libnautilus/nautilus-bonobo-ui.h
index 516d08a6a..730b3db88 100644
--- a/libnautilus/nautilus-bonobo-ui.h
+++ b/libnautilus/nautilus-bonobo-ui.h
@@ -37,6 +37,7 @@
#define NAUTILUS_MENU_PATH_FILE_MENU "/File"
#define NAUTILUS_MENU_PATH_EDIT_MENU "/Edit"
+#define NAUTILUS_MENU_PATH_VIEW_MENU "/View"
#define NAUTILUS_MENU_PATH_GO_MENU "/Go"
#define NAUTILUS_MENU_PATH_BOOKMARKS_MENU "/Bookmarks"
#define NAUTILUS_MENU_PATH_HELP_MENU "/Help"
@@ -92,6 +93,18 @@
*/
#define NAUTILUS_MENU_PATH_EDIT_ITEMS_PLACEHOLDER "/Edit/Edit Items Placeholder"
+/**
+ * Use the "show/hide" placeholder to insert other View menu items that
+ * control the visibility of some piece of the UI, such as "Show/Hide Status Bar".
+ */
+#define NAUTILUS_MENU_PATH_SHOW_HIDE_PLACEHOLDER "/View/Show Hide Placeholder"
+
+/**
+ * Use the "view items" placeholder to insert other View menu items that
+ * are specific to a component, such as the Icon View's layout options.
+ */
+#define NAUTILUS_MENU_PATH_VIEW_ITEMS_PLACEHOLDER "/View/View Items Placeholder"
+
/* Use the "extra help items" placeholder to add help-related items */
#define NAUTILUS_MENU_PATH_EXTRA_HELP_ITEMS_PLACEHOLDER "/Help/Extra Help Items"