summaryrefslogtreecommitdiff
path: root/Userland/Demos/Cube
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-01 10:45:39 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-01 17:40:54 +0200
commit4b0098e52f860ac346c42ba8a3bfdebf1de37f56 (patch)
treeb477de65ad7fc15a707dad93a0b8ead992bfda5b /Userland/Demos/Cube
parentb119fa5a0a6c12877d90f947849d6db0ae426187 (diff)
downloadserenity-4b0098e52f860ac346c42ba8a3bfdebf1de37f56.zip
Everywhere: Rename app_menu to file_menu or game_menu
Diffstat (limited to 'Userland/Demos/Cube')
-rw-r--r--Userland/Demos/Cube/Cube.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Userland/Demos/Cube/Cube.cpp b/Userland/Demos/Cube/Cube.cpp
index a079035b60..55704d2d2f 100644
--- a/Userland/Demos/Cube/Cube.cpp
+++ b/Userland/Demos/Cube/Cube.cpp
@@ -244,22 +244,22 @@ int main(int argc, char** argv)
window->set_icon(app_icon.bitmap_for_size(16));
auto menubar = GUI::Menubar::construct();
- auto& app_menu = menubar->add_menu("File");
+ auto& file_menu = menubar->add_menu("&File");
auto show_window_frame_action = GUI::Action::create_checkable("Show window frame", [&](auto& action) {
cube.set_show_window_frame(action.is_checked());
});
cube.set_show_window_frame(!flag_hide_window_frame);
show_window_frame_action->set_checked(cube.show_window_frame());
- app_menu.add_action(move(show_window_frame_action));
- app_menu.add_separator();
- app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
+ file_menu.add_action(move(show_window_frame_action));
+ file_menu.add_separator();
+ file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
auto& help_menu = menubar->add_menu("Help");
help_menu.add_action(GUI::CommonActions::make_about_action("Cube Demo", app_icon, window));
window->set_menubar(move(menubar));
cube.on_context_menu_request = [&](auto& event) {
- app_menu.popup(event.screen_position());
+ file_menu.popup(event.screen_position());
};
window->show();