diff options
author | Andreas Kling <awesomekling@gmail.com> | 2019-10-05 09:21:55 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2019-10-05 09:21:55 +0200 |
commit | 7dd03b7846b260d0c31c3a6c8f3da92d7c848315 (patch) | |
tree | 49d0d47cc0b24a7beb14c5a990f7df99ec23336d /Applications/Help | |
parent | ee64d99a96a03f88365a566539aa29421f4c68d8 (diff) | |
download | serenity-7dd03b7846b260d0c31c3a6c8f3da92d7c848315.zip |
LibGUI: Add back/forward actions to GCommonActions
Diffstat (limited to 'Applications/Help')
-rw-r--r-- | Applications/Help/main.cpp | 4 |
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()); |