[PATCH] Enable "Close All Windows"/"Open Location" keybindings on desktop



I've always been bugged by the fact that since the Spatial/Navigational
split-out, the accelerators for "Close All Windows"/"Open Location"
don't work on the desktop. The attached patch solves this. Note that
this could also be done a bit more elegant by adding a dummy accel
keybinding to the directory view and adding prompt_for_location to the
NautilusWindowInfo interface, overriding it with the existing
prompt_for_location from NautilusWindow, and calling the action through
the directory view. But I'm not convinced it is worth the pain,
considering that the desktop view is a spatial window without any
menubar.

-- 
Christian Neumair <chris gnome-de org>
Index: src/nautilus-spatial-window-ui.xml
===================================================================
RCS file: /cvs/gnome/nautilus/src/nautilus-spatial-window-ui.xml,v
retrieving revision 1.14
diff -u -r1.14 nautilus-spatial-window-ui.xml
--- src/nautilus-spatial-window-ui.xml	22 Nov 2004 15:24:37 -0000	1.14
+++ src/nautilus-spatial-window-ui.xml	14 May 2005 12:42:59 -0000
@@ -1,4 +1,6 @@
 <ui>
+<accelerator action="Go to Location"/>
+<accelerator action="Close All Folders"/>
 <menubar name="MenuBar">
 	<menu action="File">
 		<placeholder name="Location Placeholder">


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]