summaryrefslogtreecommitdiff
path: root/Applications/Help
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-10-05 09:21:55 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-10-05 09:21:55 +0200
commit7dd03b7846b260d0c31c3a6c8f3da92d7c848315 (patch)
tree49d0d47cc0b24a7beb14c5a990f7df99ec23336d /Applications/Help
parentee64d99a96a03f88365a566539aa29421f4c68d8 (diff)
downloadserenity-7dd03b7846b260d0c31c3a6c8f3da92d7c848315.zip
LibGUI: Add back/forward actions to GCommonActions
Diffstat (limited to 'Applications/Help')
-rw-r--r--Applications/Help/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/Help/main.cpp b/Applications/Help/main.cpp
index d76cbc93c2..a4ed1c2d23 100644
--- a/Applications/Help/main.cpp
+++ b/Applications/Help/main.cpp
@@ -110,13 +110,13 @@ int main(int argc, char* argv[])
free(path);
};
- go_back_action = GAction::create("Go Back", { Mod_Alt, Key_Left }, GraphicsBitmap::load_from_file("/res/icons/16x16/go-back.png"), [&](const GAction&) {
+ go_back_action = GCommonActions::make_go_back_action([&](auto&) {
history.go_back();
update_actions();
open_page(history.current());
});
- go_forward_action = GAction::create("Go Forward", { Mod_Alt, Key_Right }, GraphicsBitmap::load_from_file("/res/icons/16x16/go-forward.png"), [&](const GAction&) {
+ go_forward_action = GCommonActions::make_go_forward_action([&](auto&) {
history.go_forward();
update_actions();
open_page(history.current());