summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2011-02-17 16:36:36 -0500
committerCosimo Cecchi <cosimoc@gnome.org>2011-02-17 16:37:40 -0500
commit4bf81e0d4883b9b6a6dfab120b096bea26a46a0a (patch)
tree4fd9a1919f6abd5d5d28cdbc9a24058c06489bd5 /src
parentdf516e1f09ded17bea6a4fc4fd8b974f61e799b4 (diff)
downloadnautilus-4bf81e0d4883b9b6a6dfab120b096bea26a46a0a.tar.gz
window: merge the navigation window XML into the shell XML
There's no such distinction anymore.
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am1
-rw-r--r--src/nautilus-navigation-window-ui.xml62
-rw-r--r--src/nautilus-shell-ui.xml57
-rw-r--r--src/nautilus-window-menus.c3
4 files changed, 53 insertions, 70 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 253489a0e..cc1dcf356 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -210,7 +210,6 @@ TESTS=check-nautilus
uidir = $(datadir)/nautilus/ui
ui_DATA = \
nautilus-shell-ui.xml \
- nautilus-navigation-window-ui.xml \
nautilus-file-management-properties.ui \
nautilus-bookmarks-window.ui \
nautilus-desktop-icon-view-ui.xml \
diff --git a/src/nautilus-navigation-window-ui.xml b/src/nautilus-navigation-window-ui.xml
deleted file mode 100644
index 9270eb3ec..000000000
--- a/src/nautilus-navigation-window-ui.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<ui>
-<accelerator action="ShowSearch"/>
-<accelerator action="SplitViewNextPane"/>
-<accelerator action="TabsPrevious"/>
-<accelerator action="TabsNext"/>
-<accelerator action="TabsMoveLeft"/>
-<accelerator action="TabsMoveRight"/>
-<menubar name="MenuBar">
- <menu action="File">
- <placeholder name="New Items Placeholder">
- <menuitem name="New Tab" action="New Tab"/>
- <menuitem name="New Window" action="New Window"/>
- <separator/>
- </placeholder>
-
- <placeholder name="Close Items Placeholder">
- <menuitem name="Close All Windows" action="Close All Windows"/>
- </placeholder>
- </menu>
- <menu action="View">
- <placeholder name="Show Hide Placeholder">
- <menu action="Sidebar List">
- <menuitem name="Sidebar Places" action="Sidebar Places"/>
- <menuitem name="Sidebar Tree" action="Sidebar Tree"/>
- <separator/>
- <menuitem name="Show Hide Sidebar" action="Show Hide Sidebar"/>
- </menu>
- <menuitem name="Show Hide Toolbar" action="Show Hide Toolbar"/>
- <menuitem name="Show Hide Statusbar" action="Show Hide Statusbar"/>
- <menuitem name="Show Hide Extra Pane" action="Show Hide Extra Pane"/>
- </placeholder>
- </menu>
- <placeholder name="Other Menus">
- <menu action="Go">
- <placeholder name="Navigation Items">
- <menuitem name="Up" action="Up"/>
- <menuitem name="Back" action="Back"/>
- <menuitem name="Forward" action="Forward"/>
- <menuitem name="SplitViewSameLocationMenu" action="SplitViewSameLocation"/>
- </placeholder>
- <separator/>
- <menuitem name="Home" action="Home"/>
- <menuitem name="Computer" action="Go to Computer"/>
- <menuitem name="Go to Templates" action="Go to Templates"/>
- <menuitem name="Go to Trash" action="Go to Trash"/>
- <menuitem name="Go to Network" action="Go to Network"/>
- <menuitem name="Go to Location" action="Go to Location"/>
- <menuitem name="Search" action="Search"/>
- <separator/>
- <menuitem name="Clear History" action="Clear History"/>
- <separator/>
- <placeholder name="History Placeholder"/>
- </menu>
- <menu action="Bookmarks">
- <menuitem name="Add Bookmark" action="Add Bookmark"/>
- <menuitem name="Edit Bookmark" action="Edit Bookmarks"/>
- <separator/>
- <placeholder name="Bookmarks Placeholder"/>
- </menu>
- </placeholder>
-</menubar>
-</ui>
diff --git a/src/nautilus-shell-ui.xml b/src/nautilus-shell-ui.xml
index 2686beb9f..ea843e656 100644
--- a/src/nautilus-shell-ui.xml
+++ b/src/nautilus-shell-ui.xml
@@ -1,10 +1,19 @@
<ui>
+<accelerator action="ShowSearch"/>
+<accelerator action="SplitViewNextPane"/>
+<accelerator action="TabsPrevious"/>
+<accelerator action="TabsNext"/>
+<accelerator action="TabsMoveLeft"/>
+<accelerator action="TabsMoveRight"/>
<accelerator action="ZoomInAccel"/>
<accelerator action="ZoomInAccel2"/>
<accelerator action="ZoomOutAccel"/>
<menubar name="MenuBar">
<menu action="File">
- <placeholder name="New Items Placeholder"/>
+ <placeholder name="New Items Placeholder">
+ <menuitem name="New Tab" action="New Tab"/>
+ <menuitem name="New Window" action="New Window"/>
+ </placeholder>
<separator/>
<placeholder name="Open Placeholder"/>
<separator/>
@@ -17,7 +26,9 @@
<separator/>
<placeholder name="Extension Actions"/>
<separator/>
- <placeholder name="Close Items Placeholder"/>
+ <placeholder name="Close Items Placeholder">
+ <menuitem name="Close All Windows" action="Close All Windows"/>
+ </placeholder>
<menuitem name="Close" action="Close"/>
</menu>
<menu action="Edit">
@@ -43,7 +54,17 @@
<menuitem name="Stop" action="Stop"/>
<menuitem name="Reload" action="Reload"/>
<separator/>
- <placeholder name="Show Hide Placeholder"/>
+ <placeholder name="Show Hide Placeholder">
+ <menu action="Sidebar List">
+ <menuitem name="Sidebar Places" action="Sidebar Places"/>
+ <menuitem name="Sidebar Tree" action="Sidebar Tree"/>
+ <separator/>
+ <menuitem name="Show Hide Sidebar" action="Show Hide Sidebar"/>
+ </menu>
+ <menuitem name="Show Hide Toolbar" action="Show Hide Toolbar"/>
+ <menuitem name="Show Hide Statusbar" action="Show Hide Statusbar"/>
+ <menuitem name="Show Hide Extra Pane" action="Show Hide Extra Pane"/>
+ </placeholder>
<separator/>
<placeholder name="View Preferences Placeholder"/>
<separator/>
@@ -61,7 +82,35 @@
<placeholder name="Short List"/>
</placeholder>
</menu>
- <placeholder name="Other Menus"/>
+ <placeholder name="Other Menus">
+ <menu action="Go">
+ <placeholder name="Navigation Items">
+ <menuitem name="Up" action="Up"/>
+ <menuitem name="Back" action="Back"/>
+ <menuitem name="Forward" action="Forward"/>
+ <menuitem name="SplitViewSameLocationMenu" action="SplitViewSameLocation"/>
+ </placeholder>
+ <separator/>
+ <menuitem name="Home" action="Home"/>
+ <menuitem name="Computer" action="Go to Computer"/>
+ <menuitem name="Go to Templates" action="Go to Templates"/>
+ <menuitem name="Go to Trash" action="Go to Trash"/>
+ <menuitem name="Go to Network" action="Go to Network"/>
+ <menuitem name="Go to Location" action="Go to Location"/>
+ <menuitem name="Search" action="Search"/>
+ <separator/>
+ <menuitem name="Clear History" action="Clear History"/>
+ <separator/>
+ <placeholder name="History Placeholder"/>
+ </menu>
+ <menu action="Bookmarks">
+ <menuitem name="Add Bookmark" action="Add Bookmark"/>
+ <menuitem name="Edit Bookmark" action="Edit Bookmarks"/>
+ <separator/>
+ <placeholder name="Bookmarks Placeholder"/>
+ </menu>
+
+ </placeholder>
<menu action="Help">
<menuitem name="Nautilus Manual" action="Nautilus Manual"/>
<menuitem name="About Nautilus" action="About Nautilus"/>
diff --git a/src/nautilus-window-menus.c b/src/nautilus-window-menus.c
index 1e028a470..62e3202d1 100644
--- a/src/nautilus-window-menus.c
+++ b/src/nautilus-window-menus.c
@@ -1394,9 +1394,6 @@ nautilus_window_initialize_menus (NautilusWindow *window)
ui = nautilus_ui_string_get ("nautilus-shell-ui.xml");
gtk_ui_manager_add_ui_from_string (ui_manager, ui, -1, NULL);
- ui = nautilus_ui_string_get ("nautilus-navigation-window-ui.xml");
- gtk_ui_manager_add_ui_from_string (ui_manager, ui, -1, NULL);
-
nautilus_window_initialize_trash_icon_monitor (window);
nautilus_window_initialize_go_menu (window);
}