mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
Everywhere: Rename app_menu to file_menu, continued
These were missed in 4b0098e
.
This commit is contained in:
parent
790d68ac5e
commit
ff1d3f53c4
|
@ -220,8 +220,8 @@ int main(int argc, char** argv)
|
|||
window->resize(640, 400);
|
||||
|
||||
auto menubar = GUI::Menubar::construct();
|
||||
auto& app_menu = menubar->add_menu("File");
|
||||
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
|
||||
auto& file_menu = menubar->add_menu("File");
|
||||
file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
|
||||
window->set_menubar(move(menubar));
|
||||
|
||||
auto& fire = window->set_main_widget<Fire>();
|
||||
|
|
|
@ -206,8 +206,8 @@ int main(int argc, char** argv)
|
|||
window->resize(WIDTH, HEIGHT);
|
||||
|
||||
auto menubar = GUI::Menubar::construct();
|
||||
auto& app_menu = menubar->add_menu("File");
|
||||
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
|
||||
auto& file_menu = menubar->add_menu("File");
|
||||
file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
|
||||
window->set_menubar(move(menubar));
|
||||
|
||||
auto app_icon = GUI::Icon::default_icon("app-libgfx-demo");
|
||||
|
|
|
@ -127,8 +127,8 @@ int main(int argc, char** argv)
|
|||
window->resize(WIDTH * 2, HEIGHT * 3);
|
||||
|
||||
auto menubar = GUI::Menubar::construct();
|
||||
auto& app_menu = menubar->add_menu("File");
|
||||
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
|
||||
auto& file_menu = menubar->add_menu("File");
|
||||
file_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
|
||||
window->set_menubar(move(menubar));
|
||||
|
||||
auto app_icon = GUI::Icon::default_icon("app-libgfx-demo");
|
||||
|
|
|
@ -868,7 +868,7 @@ void HackStudioWidget::create_project_tab(GUI::Widget& parent)
|
|||
};
|
||||
}
|
||||
|
||||
void HackStudioWidget::create_app_menubar(GUI::Menubar& menubar)
|
||||
void HackStudioWidget::create_file_menubar(GUI::Menubar& menubar)
|
||||
{
|
||||
auto& file_menu = menubar.add_menu("&File");
|
||||
file_menu.add_action(*m_new_project_action);
|
||||
|
@ -998,7 +998,7 @@ NonnullRefPtr<GUI::Action> HackStudioWidget::create_set_autocomplete_mode_action
|
|||
|
||||
void HackStudioWidget::initialize_menubar(GUI::Menubar& menubar)
|
||||
{
|
||||
create_app_menubar(menubar);
|
||||
create_file_menubar(menubar);
|
||||
create_project_menubar(menubar);
|
||||
create_edit_menubar(menubar);
|
||||
create_build_menubar(menubar);
|
||||
|
|
|
@ -103,7 +103,7 @@ private:
|
|||
void create_open_files_view(GUI::Widget& parent);
|
||||
void create_toolbar(GUI::Widget& parent);
|
||||
void create_action_tab(GUI::Widget& parent);
|
||||
void create_app_menubar(GUI::Menubar&);
|
||||
void create_file_menubar(GUI::Menubar&);
|
||||
void create_project_menubar(GUI::Menubar&);
|
||||
void create_edit_menubar(GUI::Menubar&);
|
||||
void create_build_menubar(GUI::Menubar&);
|
||||
|
|
Loading…
Reference in a new issue