summaryrefslogtreecommitdiff
path: root/Games/Minesweeper
diff options
context:
space:
mode:
authorJami Kettunen <jami.kettunen@protonmail.com>2019-12-31 00:12:52 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-12-31 01:46:42 +0100
commit74a18c86c987fd11b085e3e802755ff74ac9f15b (patch)
tree14591ee57983ebe9e34c78f0f63e251821632f34 /Games/Minesweeper
parent33b8d37dd3a4f6dd2a5f3d3c2d96b7441ba0a488 (diff)
downloadserenity-74a18c86c987fd11b085e3e802755ff74ac9f15b.zip
Applications: Implement some missing MenuBars & AboutDialogs
Diffstat (limited to 'Games/Minesweeper')
-rw-r--r--Games/Minesweeper/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/Games/Minesweeper/main.cpp b/Games/Minesweeper/main.cpp
index 80f4ad71c6..c0bc6da998 100644
--- a/Games/Minesweeper/main.cpp
+++ b/Games/Minesweeper/main.cpp
@@ -1,6 +1,7 @@
#include "Field.h"
#include <LibCore/CConfigFile.h>
#include <LibDraw/PNGLoader.h>
+#include <LibGUI/GAboutDialog.h>
#include <LibGUI/GAction.h>
#include <LibGUI/GApplication.h>
#include <LibGUI/GBoxLayout.h>
@@ -89,8 +90,8 @@ int main(int argc, char** argv)
menubar->add_menu(move(difficulty_menu));
auto help_menu = GMenu::construct("Help");
- help_menu->add_action(GAction::create("About", [](const GAction&) {
- dbgprintf("FIXME: Implement Help/About\n");
+ help_menu->add_action(GAction::create("About", [&](const GAction&) {
+ GAboutDialog::show("Minesweeper", load_png("/res/icons/32x32/app-minesweeper.png"), window);
}));
menubar->add_menu(move(help_menu));