summaryrefslogtreecommitdiff
path: root/Userland/DevTools
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-03-25 21:41:39 +0100
committerAndreas Kling <kling@serenityos.org>2021-03-25 22:14:09 +0100
commit78b12e1521a5ab4e0a212c0e125b76a813be6f64 (patch)
tree63b47fca86bfba4ef53d62f301856e63f5bb2f28 /Userland/DevTools
parentfcc8e3484f9c2312d80063fe8d6251830609385a (diff)
downloadserenity-78b12e1521a5ab4e0a212c0e125b76a813be6f64.zip
Userland: Turn all application menus into window menus :^)
Diffstat (limited to 'Userland/DevTools')
-rw-r--r--Userland/DevTools/HackStudio/HackStudioWidget.cpp2
-rw-r--r--Userland/DevTools/HackStudio/main.cpp2
-rw-r--r--Userland/DevTools/Inspector/main.cpp4
-rw-r--r--Userland/DevTools/Playground/main.cpp4
-rw-r--r--Userland/DevTools/Profiler/main.cpp5
5 files changed, 8 insertions, 9 deletions
diff --git a/Userland/DevTools/HackStudio/HackStudioWidget.cpp b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
index dfb8611eb7..6861853a8a 100644
--- a/Userland/DevTools/HackStudio/HackStudioWidget.cpp
+++ b/Userland/DevTools/HackStudio/HackStudioWidget.cpp
@@ -888,7 +888,7 @@ void HackStudioWidget::create_action_tab(GUI::Widget& parent)
void HackStudioWidget::create_app_menubar(GUI::MenuBar& menubar)
{
- auto& app_menu = menubar.add_menu("Hack Studio");
+ auto& app_menu = menubar.add_menu("File");
app_menu.add_action(*m_new_project_action);
app_menu.add_action(*m_open_action);
app_menu.add_action(*m_save_action);
diff --git a/Userland/DevTools/HackStudio/main.cpp b/Userland/DevTools/HackStudio/main.cpp
index bc2636e6e9..fbeba335e3 100644
--- a/Userland/DevTools/HackStudio/main.cpp
+++ b/Userland/DevTools/HackStudio/main.cpp
@@ -99,7 +99,7 @@ int main(int argc, char** argv)
auto menubar = GUI::MenuBar::construct();
s_hack_studio_widget->initialize_menubar(menubar);
- app->set_menubar(menubar);
+ s_window->set_menubar(menubar);
s_window->show();
diff --git a/Userland/DevTools/Inspector/main.cpp b/Userland/DevTools/Inspector/main.cpp
index 46f7e411b4..52c428a4a5 100644
--- a/Userland/DevTools/Inspector/main.cpp
+++ b/Userland/DevTools/Inspector/main.cpp
@@ -129,7 +129,7 @@ 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("Inspector");
+ auto& app_menu = menubar->add_menu("File");
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
auto& help_menu = menubar->add_menu("Help");
@@ -168,7 +168,7 @@ int main(int argc, char** argv)
remote_process.set_inspected_object(remote_object->address);
};
- app->set_menubar(move(menubar));
+ window->set_menubar(move(menubar));
window->show();
remote_process.update();
diff --git a/Userland/DevTools/Playground/main.cpp b/Userland/DevTools/Playground/main.cpp
index dc63bd47b6..06e554e4e2 100644
--- a/Userland/DevTools/Playground/main.cpp
+++ b/Userland/DevTools/Playground/main.cpp
@@ -330,7 +330,7 @@ int main(int argc, char** argv)
};
auto menubar = GUI::MenuBar::construct();
- auto& app_menu = menubar->add_menu("GML Playground");
+ auto& app_menu = menubar->add_menu("File");
app_menu.add_action(GUI::CommonActions::make_open_action([&](auto&) {
Optional<String> open_path = GUI::FilePicker::get_open_filepath(window);
@@ -400,7 +400,7 @@ int main(int argc, char** argv)
}));
help_menu.add_action(GUI::CommonActions::make_about_action("GML Playground", app_icon, window));
- app->set_menubar(move(menubar));
+ window->set_menubar(move(menubar));
window->show();
return app->exec();
diff --git a/Userland/DevTools/Profiler/main.cpp b/Userland/DevTools/Profiler/main.cpp
index ea32b54be2..7491f24324 100644
--- a/Userland/DevTools/Profiler/main.cpp
+++ b/Userland/DevTools/Profiler/main.cpp
@@ -141,7 +141,7 @@ int main(int argc, char** argv)
};
auto menubar = GUI::MenuBar::construct();
- auto& app_menu = menubar->add_menu("Profiler");
+ auto& app_menu = menubar->add_menu("File");
app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); }));
auto& view_menu = menubar->add_menu("View");
@@ -185,8 +185,7 @@ int main(int argc, char** argv)
}));
help_menu.add_action(GUI::CommonActions::make_about_action("Profiler", app_icon, window));
- app->set_menubar(move(menubar));
-
+ window->set_menubar(move(menubar));
window->show();
return app->exec();
}