diff options
author | Erik Biederstadt <biederstadterik@gmail.com> | 2021-05-17 15:53:54 -0600 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-05-19 19:34:12 +0100 |
commit | 132ecfc47b2b21706fff16f08ab30bcb7879af73 (patch) | |
tree | 42b1f48a1b546dff525ba7a21a5083213436a840 /Userland | |
parent | d9dc42fab5a0869e51df3b60c408555e0ab69d0a (diff) | |
download | serenity-132ecfc47b2b21706fff16f08ab30bcb7879af73.zip |
GLTeapot: Adds a help menu to the GLTeapot demo
Having a help menu maintains better consistency with the other GUI apps
on the system.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Demos/GLTeapot/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Demos/GLTeapot/main.cpp b/Userland/Demos/GLTeapot/main.cpp index 0e8f6a163d..e81f697431 100644 --- a/Userland/Demos/GLTeapot/main.cpp +++ b/Userland/Demos/GLTeapot/main.cpp @@ -194,6 +194,9 @@ int main(int argc, char** argv) app->quit(); })); + auto& help_menu = menubar->add_menu("&Help"); + help_menu.add_action(GUI::CommonActions::make_about_action("GLTeapot", app_icon, window)); + window->set_menubar(move(menubar)); window->show(); |