mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-23 13:57:04 +00:00
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.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user