mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-02-25 09:04:53 +00:00
LibGUI: Remove deprecated text and set_text functions in AbstractButton
This moves the functions to lambda when registering a property. External code can now only communicate using the new String API.
This commit is contained in:
@@ -20,11 +20,6 @@ REGISTER_WIDGET(GUI, DialogButton)
|
||||
|
||||
namespace GUI {
|
||||
|
||||
Button::Button(DeprecatedString deprecated_text)
|
||||
: Button(String::from_deprecated_string(deprecated_text).release_value_but_fixme_should_propagate_errors())
|
||||
{
|
||||
}
|
||||
|
||||
Button::Button(String text)
|
||||
: AbstractButton(move(text))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user