diff options
author | Andreas Kling <kling@serenityos.org> | 2021-05-01 10:45:39 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-05-01 17:40:54 +0200 |
commit | 4b0098e52f860ac346c42ba8a3bfdebf1de37f56 (patch) | |
tree | b477de65ad7fc15a707dad93a0b8ead992bfda5b /Userland/Applications/Terminal | |
parent | b119fa5a0a6c12877d90f947849d6db0ae426187 (diff) | |
download | serenity-4b0098e52f860ac346c42ba8a3bfdebf1de37f56.zip |
Everywhere: Rename app_menu to file_menu or game_menu
Diffstat (limited to 'Userland/Applications/Terminal')
-rw-r--r-- | Userland/Applications/Terminal/main.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Applications/Terminal/main.cpp b/Userland/Applications/Terminal/main.cpp index 90074061dc..0292207769 100644 --- a/Userland/Applications/Terminal/main.cpp +++ b/Userland/Applications/Terminal/main.cpp @@ -348,8 +348,8 @@ int main(int argc, char** argv) auto menubar = GUI::Menubar::construct(); - auto& app_menu = menubar->add_menu("&File"); - app_menu.add_action(GUI::Action::create("Open New &Terminal", { Mod_Ctrl | Mod_Shift, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-terminal.png"), [&](auto&) { + auto& file_menu = menubar->add_menu("&File"); + file_menu.add_action(GUI::Action::create("Open New &Terminal", { Mod_Ctrl | Mod_Shift, Key_N }, Gfx::Bitmap::load_from_file("/res/icons/16x16/app-terminal.png"), [&](auto&) { pid_t child; const char* argv[] = { "Terminal", nullptr }; if ((errno = posix_spawn(&child, "/bin/Terminal", nullptr, nullptr, const_cast<char**>(argv), environ))) { @@ -360,9 +360,9 @@ int main(int argc, char** argv) } })); - app_menu.add_action(open_settings_action); - app_menu.add_separator(); - app_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) { + file_menu.add_action(open_settings_action); + file_menu.add_separator(); + file_menu.add_action(GUI::CommonActions::make_quit_action([](auto&) { dbgln("Terminal: Quit menu activated!"); GUI::Application::the()->quit(); })); |