mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 02:13:56 +09:00
LibGUI+Userland: Add _deprecated
suffix to AbstractButton::{set_,}text
This commit is contained in:
parent
61b49daf0a
commit
d32b052f22
Notes:
sideshowbarker
2024-07-17 00:27:28 +09:00
Author: https://github.com/krkk
Commit: d32b052f22
Pull-request: https://github.com/SerenityOS/serenity/pull/17454
Reviewed-by: https://github.com/linusg ✅
30 changed files with 83 additions and 83 deletions
|
@ -205,7 +205,7 @@ void BookmarksBarWidget::model_did_update(unsigned)
|
|||
m_bookmarks.append(button);
|
||||
|
||||
button.set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
button.set_text(title);
|
||||
button.set_text_deprecated(title);
|
||||
button.set_icon(g_icon_bag.filetype_html);
|
||||
button.set_fixed_size(font().width(title) + 32, 20);
|
||||
button.set_relative_rect(rect);
|
||||
|
@ -264,7 +264,7 @@ void BookmarksBarWidget::update_content_size()
|
|||
for (size_t i = m_last_visible_index; i < m_bookmarks.size(); ++i) {
|
||||
auto& bookmark = m_bookmarks.at(i);
|
||||
bookmark.set_visible(false);
|
||||
m_additional_menu->add_action(GUI::Action::create(bookmark.text(), g_icon_bag.filetype_html, [&](auto&) { bookmark.on_click(0); }));
|
||||
m_additional_menu->add_action(GUI::Action::create(bookmark.text_deprecated(), g_icon_bag.filetype_html, [&](auto&) { bookmark.on_click(0); }));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue