From 0ee7991dcab29ec84c19a4ce2228798a7a35f2c7 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 15 May 2021 22:55:57 +0200 Subject: [PATCH] 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. --- Userland/Libraries/LibGUI/Button.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 on_click; - Function on_context_menu_request; + Function on_context_menu_request; void set_button_style(Gfx::ButtonStyle style) { m_button_style = style; } Gfx::ButtonStyle button_style() const { return m_button_style; }