diff options
author | Andreas Kling <kling@serenityos.org> | 2021-01-04 23:51:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-01-04 23:51:49 +0100 |
commit | fedf561f577711ea190e128f38556e6346acfbe4 (patch) | |
tree | 883ead673896e21ce78d8f51a0c2777e06a7c236 /Demos/WidgetGallery | |
parent | f0a59ab7fb92dd0df96c4f8e6f696b62cbce9af8 (diff) | |
download | serenity-fedf561f577711ea190e128f38556e6346acfbe4.zip |
Everywhere: Use GUI::CommonActions::make_about_action()
Diffstat (limited to 'Demos/WidgetGallery')
-rw-r--r-- | Demos/WidgetGallery/main.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/Demos/WidgetGallery/main.cpp b/Demos/WidgetGallery/main.cpp index fb08d54e29..37e5c4efa2 100644 --- a/Demos/WidgetGallery/main.cpp +++ b/Demos/WidgetGallery/main.cpp @@ -27,7 +27,6 @@ #include <AK/NonnullRefPtr.h> #include <AK/Vector.h> -#include <LibGUI/AboutDialog.h> #include <LibGUI/Action.h> #include <LibGUI/Application.h> #include <LibGUI/BoxLayout.h> @@ -115,9 +114,7 @@ int main(int argc, char** argv) app_menu.add_action(GUI::CommonActions::make_quit_action([&](auto&) { app->quit(); })); auto& help_menu = menubar->add_menu("Help"); - help_menu.add_action(GUI::Action::create("About", [&](auto&) { - GUI::AboutDialog::show("Widget Gallery", app_icon.bitmap_for_size(32), window); - })); + help_menu.add_action(GUI::CommonActions::make_about_action("Widget Gallery", app_icon, window)); auto& root_widget = window->set_main_widget<GUI::Widget>(); root_widget.set_fill_with_background_color(true); |