Commit 3c629b52 authored by Cosimo Cecchi's avatar Cosimo Cecchi

window-menus: hide "Close All Windows" when the app menu is showing

Since it's the same as our "Quit" option.
parent a270a6a2
......@@ -49,6 +49,7 @@
#define NAUTILUS_ACTION_ZOOM_NORMAL "Zoom Normal"
#define NAUTILUS_ACTION_SHOW_HIDDEN_FILES "Show Hidden Files"
#define NAUTILUS_ACTION_CLOSE "Close"
#define NAUTILUS_ACTION_CLOSE_ALL_WINDOWS "Close All Windows"
#define NAUTILUS_ACTION_SEARCH "Search"
#define NAUTILUS_ACTION_FOLDER_WINDOW "Folder Window"
#define NAUTILUS_ACTION_NEW_TAB "New Tab"
......
......@@ -905,7 +905,7 @@ static const GtkActionEntry main_entries[] = {
/* name, stock id, label */ { "New Tab", "tab-new", N_("New _Tab"),
"<control>T", N_("Open another tab for the displayed location"),
G_CALLBACK (action_new_tab_callback) },
/* name, stock id, label */ { "Close All Windows", NULL, N_("Close _All Windows"),
/* name, stock id, label */ { NAUTILUS_ACTION_CLOSE_ALL_WINDOWS, NULL, N_("Close _All Windows"),
"<control>Q", N_("Close all Navigation windows"),
G_CALLBACK (action_close_all_windows_callback) },
/* name, stock id, label */ { NAUTILUS_ACTION_BACK, GTK_STOCK_GO_BACK, N_("_Back"),
......@@ -991,7 +991,8 @@ static const gchar* app_actions[] = {
NAUTILUS_ACTION_CONNECT_TO_SERVER,
NAUTILUS_ACTION_PREFERENCES,
NAUTILUS_ACTION_HELP,
NAUTILUS_ACTION_ABOUT
NAUTILUS_ACTION_ABOUT,
NAUTILUS_ACTION_CLOSE_ALL_WINDOWS
};
GtkActionGroup *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment