mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 03:37:45 +00:00
Userland: Use nondeprecated set_tooltip for static and formatted strings
This commit is contained in:
parent
46a97844c7
commit
ed3e729d4e
18 changed files with 45 additions and 45 deletions
|
@ -205,7 +205,7 @@ Tab::Tab(BrowserWindow& window)
|
|||
this);
|
||||
|
||||
m_reset_zoom_button = toolbar.add<GUI::Button>();
|
||||
m_reset_zoom_button->set_tooltip_deprecated("Reset zoom level");
|
||||
m_reset_zoom_button->set_tooltip("Reset zoom level"_string);
|
||||
m_reset_zoom_button->on_click = [&](auto) {
|
||||
view().reset_zoom();
|
||||
update_reset_zoom_button();
|
||||
|
@ -801,10 +801,10 @@ void Tab::update_bookmark_button(StringView url)
|
|||
{
|
||||
if (BookmarksBarWidget::the().contains_bookmark(url)) {
|
||||
m_bookmark_button->set_icon(g_icon_bag.bookmark_filled);
|
||||
m_bookmark_button->set_tooltip_deprecated("Remove Bookmark");
|
||||
m_bookmark_button->set_tooltip("Remove Bookmark"_string);
|
||||
} else {
|
||||
m_bookmark_button->set_icon(g_icon_bag.bookmark_contour);
|
||||
m_bookmark_button->set_tooltip_deprecated("Add Bookmark");
|
||||
m_bookmark_button->set_tooltip("Add Bookmark"_string);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue