diff options
author | John Sullivan <sullivan@src.gnome.org> | 2000-08-31 19:52:57 +0000 |
---|---|---|
committer | John Sullivan <sullivan@src.gnome.org> | 2000-08-31 19:52:57 +0000 |
commit | 237505c23dc98ed4d0846ad9adc2c0091cf8358a (patch) | |
tree | edf1b2455fce1b70ec8e84dd7ff7d297522fbf9f /src/nautilus-spatial-window.h | |
parent | 3e065771365d03b831d2f3c3d027bc1c1c56e0b2 (diff) | |
download | nautilus-237505c23dc98ed4d0846ad9adc2c0091cf8358a.tar.gz |
Fixed bug 2327 (Alt-key shortcuts to navigate menus shouldn't
work on Desktop). Control-key shortcuts to invoke items directly
still work. I had to fix a Bonobo bug to make this work, so
until you get a new Bonobo this won't work for you (but it will
still compile and run and all).
* src/nautilus-window.h:
Prototype for nautilus_window_disable_keyboard_navigation_for_menus.
* src/nautilus-window-menus.c: Added normal_menu_titles, a static
array of menu paths used for iterating across all the textual
menu titles.
(get_menu_title): New function, returns menu title given path.
(remove_underline_accelerator_from_menu_title): New function,
resets the label of a menu to be the same, but without the underline.
(nautilus_window_disable_keyboard_navigation_for_menus): New function,
iterates through normal_menu_titles calling remove_underline_...
on each.
(new_top_level_menu): Now computes title from path using get_menu_title
instead of taking title as parameter.
(nautilus_window_create_top_level_menus): New function, creates all
the top-level menus (other than weird user level one) by iterating
across normal_menu_titles.
(nautilus_window_initialize_menus): Now calls _create_top_level_menus
instead of creating each one at a time.
* src/nautilus-desktop-window.c: (nautilus_desktop_window_new):
Now calls nautilus_window_disable_keyboard_navigation_for_menus
just after creating the NautilusWindow.
Diffstat (limited to 'src/nautilus-spatial-window.h')
-rw-r--r-- | src/nautilus-spatial-window.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nautilus-spatial-window.h b/src/nautilus-spatial-window.h index 783f4b5e3..fa7ba166b 100644 --- a/src/nautilus-spatial-window.h +++ b/src/nautilus-spatial-window.h @@ -160,6 +160,8 @@ void nautilus_window_set_search_mode (NautilusWindow *window gboolean search_mode); void nautilus_window_go_home (NautilusWindow *window); void nautilus_window_go_web_search (NautilusWindow *window); +void nautilus_window_disable_keyboard_navigation_for_menus + (NautilusWindow *window); void nautilus_window_display_error (NautilusWindow *window, const char *error_msg); void nautilus_window_allow_back (NautilusWindow *window, |