mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:48:11 +00:00
Applications: Implement some missing MenuBars & AboutDialogs
This commit is contained in:
parent
33b8d37dd3
commit
74a18c86c9
7 changed files with 80 additions and 7 deletions
|
@ -6,6 +6,7 @@
|
|||
#include <LibCore/CConfigFile.h>
|
||||
#include <LibCore/CUserInfo.h>
|
||||
#include <LibDraw/PNGLoader.h>
|
||||
#include <LibGUI/GAboutDialog.h>
|
||||
#include <LibGUI/GAction.h>
|
||||
#include <LibGUI/GActionGroup.h>
|
||||
#include <LibGUI/GApplication.h>
|
||||
|
@ -383,8 +384,8 @@ int main(int argc, char** argv)
|
|||
menubar->add_menu(move(go_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("File Manager", load_png("/res/icons/32x32/filetype-folder.png"), window);
|
||||
}));
|
||||
menubar->add_menu(move(help_menu));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue