mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 16:37:35 +00:00
GAction: Remove "custom_data" and the related convenience constructors.
This mechanism was never actually used, just something I imagined would be useful while I was first creating the class.
This commit is contained in:
parent
fe69b326e9
commit
2ae0333f5d
2 changed files with 1 additions and 14 deletions
|
@ -3,19 +3,13 @@
|
|||
#include <LibGUI/GButton.h>
|
||||
#include <LibGUI/GMenuItem.h>
|
||||
|
||||
GAction::GAction(const StringView& text, const StringView& custom_data, Function<void(GAction&)> on_activation_callback, GWidget* widget)
|
||||
GAction::GAction(const StringView& text, Function<void(GAction&)> on_activation_callback, GWidget* widget)
|
||||
: on_activation(move(on_activation_callback))
|
||||
, m_text(text)
|
||||
, m_custom_data(custom_data)
|
||||
, m_widget(widget ? widget->make_weak_ptr() : nullptr)
|
||||
{
|
||||
}
|
||||
|
||||
GAction::GAction(const StringView& text, Function<void(GAction&)> on_activation_callback, GWidget* widget)
|
||||
: GAction(text, String(), move(on_activation_callback), widget)
|
||||
{
|
||||
}
|
||||
|
||||
GAction::GAction(const StringView& text, RefPtr<GraphicsBitmap>&& icon, Function<void(GAction&)> on_activation_callback, GWidget* widget)
|
||||
: on_activation(move(on_activation_callback))
|
||||
, m_text(text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue