1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 19:47:44 +00:00

Everywhere: Rename app_menu to file_menu or game_menu

This commit is contained in:
Andreas Kling 2021-05-01 10:45:39 +02:00
parent b119fa5a0a
commit 4b0098e52f
34 changed files with 140 additions and 142 deletions

View file

@ -286,8 +286,8 @@ Tab::Tab(Type type)
m_menubar = GUI::Menubar::construct();
auto& app_menu = m_menubar->add_menu("&File");
app_menu.add_action(WindowActions::the().create_new_tab_action());
auto& file_menu = m_menubar->add_menu("&File");
file_menu.add_action(WindowActions::the().create_new_tab_action());
auto close_tab_action = GUI::Action::create(
"&Close Tab", { Mod_Ctrl, Key_W }, Gfx::Bitmap::load_from_file("/res/icons/16x16/close-tab.png"), [this](auto&) {
@ -295,10 +295,10 @@ Tab::Tab(Type type)
},
this);
close_tab_action->set_status_tip("Close current tab");
app_menu.add_action(close_tab_action);
file_menu.add_action(close_tab_action);
app_menu.add_separator();
app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
file_menu.add_separator();
file_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) {
GUI::Application::the()->quit();
}));