summaryrefslogtreecommitdiff
path: root/Applications/Calendar
diff options
context:
space:
mode:
authorAbu Sakib <mabusakib@gmail.com>2020-08-18 21:08:54 +0600
committerAndreas Kling <kling@serenityos.org>2020-08-18 17:24:14 +0200
commit8abf5048b82c03ff03153fb355d9bc5c06c04a72 (patch)
treee9f4f50e9a9de47101b067d00ff6839ad9db2806 /Applications/Calendar
parent4f06cda8f864fac209e60e6571c48ce98fcc3517 (diff)
downloadserenity-8abf5048b82c03ff03153fb355d9bc5c06c04a72.zip
Calendar: Add help menuitem
Diffstat (limited to 'Applications/Calendar')
-rw-r--r--Applications/Calendar/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Applications/Calendar/main.cpp b/Applications/Calendar/main.cpp
index e640964e72..bc4a872a97 100644
--- a/Applications/Calendar/main.cpp
+++ b/Applications/Calendar/main.cpp
@@ -78,6 +78,11 @@ int main(int argc, char** argv)
return;
}));
+ auto& help_menu = menubar->add_menu("Help");
+ help_menu.add_action(GUI::Action::create("About", [&](auto&) {
+ GUI::AboutDialog::show("Calendar", Gfx::Bitmap::load_from_file("/res/icons/16x16/app-calendar.png"), window);
+ }));
+
app->set_menubar(move(menubar));
app->exec();