summaryrefslogtreecommitdiff
path: root/Userland/Applications/Assistant
diff options
context:
space:
mode:
authorKarol Kosek <krkk@serenityos.org>2023-02-12 11:13:18 +0100
committerLinus Groh <mail@linusgroh.de>2023-02-13 00:45:09 +0000
commitd32b052f22d3b1ffbf009d5de17572f381cd87fa (patch)
tree1c7d13a32501208d6e1594ac38d51d2b21ce6c11 /Userland/Applications/Assistant
parent61b49daf0acd3b3511521eb8eb494d5c57610b62 (diff)
downloadserenity-d32b052f22d3b1ffbf009d5de17572f381cd87fa.zip
LibGUI+Userland: Add `_deprecated` suffix to AbstractButton::{set_,}text
Diffstat (limited to 'Userland/Applications/Assistant')
-rw-r--r--Userland/Applications/Assistant/main.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Applications/Assistant/main.cpp b/Userland/Applications/Assistant/main.cpp
index 260ff7e754..9a672c40a2 100644
--- a/Userland/Applications/Assistant/main.cpp
+++ b/Userland/Applications/Assistant/main.cpp
@@ -57,7 +57,7 @@ class ResultRow final : public GUI::Button {
if (!m_context_menu) {
m_context_menu = GUI::Menu::construct();
- if (LexicalPath path { text() }; path.is_absolute()) {
+ if (LexicalPath path { text_deprecated() }; path.is_absolute()) {
m_context_menu->add_action(GUI::Action::create("&Show in File Manager", MUST(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-file-manager.png"sv)), [=](auto&) {
Desktop::Launcher::open(URL::create_with_file_scheme(path.dirname(), path.basename()));
}));
@@ -65,7 +65,7 @@ class ResultRow final : public GUI::Button {
}
m_context_menu->add_action(GUI::Action::create("&Copy as Text", MUST(Gfx::Bitmap::load_from_file("/res/icons/16x16/edit-copy.png"sv)), [&](auto&) {
- GUI::Clipboard::the().set_plain_text(text());
+ GUI::Clipboard::the().set_plain_text(text_deprecated());
}));
}
m_context_menu->popup(event.screen_position());
@@ -256,7 +256,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
auto& result = app_state.results[i];
auto& match = results_container.add<Assistant::ResultRow>();
match.set_icon(result.bitmap());
- match.set_text(move(result.title()));
+ match.set_text_deprecated(move(result.title()));
match.set_tooltip(move(result.tooltip()));
match.on_click = [&result](auto) {
result.activate();