diff options
Diffstat (limited to 'LibGUI/GAction.cpp')
-rw-r--r-- | LibGUI/GAction.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/LibGUI/GAction.cpp b/LibGUI/GAction.cpp index 27321c2ff4..770c5ebc5d 100644 --- a/LibGUI/GAction.cpp +++ b/LibGUI/GAction.cpp @@ -20,6 +20,12 @@ GAction::GAction(const String& text, RetainPtr<GraphicsBitmap>&& icon, Function< { } +GAction::GAction(const String& text, const GShortcut& shortcut, Function<void(const GAction&)> on_activation_callback) + : GAction(text, shortcut, nullptr, move(on_activation_callback)) +{ +} + + GAction::GAction(const String& text, const GShortcut& shortcut, RetainPtr<GraphicsBitmap>&& icon, Function<void(const GAction&)> on_activation_callback) : on_activation(move(on_activation_callback)) , m_text(text) |