summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibGUI/Button.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-05-15 22:55:57 +0200
committerAndreas Kling <kling@serenityos.org>2021-05-16 01:11:56 +0200
commit0ee7991dcab29ec84c19a4ce2228798a7a35f2c7 (patch)
tree5712e0b961b883ac77a9df4f6c67c63590585826 /Userland/Libraries/LibGUI/Button.h
parent5daf7bd2eff141a3a01f3f1625b94484cd5c8523 (diff)
downloadserenity-0ee7991dcab29ec84c19a4ce2228798a7a35f2c7.zip
LibGUI: Tweak GUI::Button::on_context_menu_event hook signature
Pass the ContextMenuEvent as a mutable reference, so that clients want to accept/ignore the event.
Diffstat (limited to 'Userland/Libraries/LibGUI/Button.h')
-rw-r--r--Userland/Libraries/LibGUI/Button.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibGUI/Button.h b/Userland/Libraries/LibGUI/Button.h
index eedb99604c..26d1588ed8 100644
--- a/Userland/Libraries/LibGUI/Button.h
+++ b/Userland/Libraries/LibGUI/Button.h
@@ -28,7 +28,7 @@ public:
Gfx::TextAlignment text_alignment() const { return m_text_alignment; }
Function<void(unsigned modifiers)> on_click;
- Function<void(const ContextMenuEvent&)> on_context_menu_request;
+ Function<void(ContextMenuEvent&)> on_context_menu_request;
void set_button_style(Gfx::ButtonStyle style) { m_button_style = style; }
Gfx::ButtonStyle button_style() const { return m_button_style; }