mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 01:57:35 +00:00
LibGUI: Add deprecated suffix to {set_,}tooltip in Widget
This commit is contained in:
parent
9b1e33af69
commit
d978dd4af8
32 changed files with 56 additions and 56 deletions
|
@ -30,7 +30,7 @@ ClockWidget::ClockWidget()
|
|||
if (now != last_update_time) {
|
||||
tick_clock();
|
||||
last_update_time = now;
|
||||
set_tooltip(Core::DateTime::now().to_deprecated_string("%Y-%m-%d"sv));
|
||||
set_tooltip_deprecated(Core::DateTime::now().to_deprecated_string("%Y-%m-%d"sv));
|
||||
}
|
||||
});
|
||||
m_timer->start();
|
||||
|
@ -107,7 +107,7 @@ ClockWidget::ClockWidget()
|
|||
m_jump_to_button->set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
m_jump_to_button->set_fixed_size(24, 24);
|
||||
m_jump_to_button->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/calendar-date.png"sv).release_value_but_fixme_should_propagate_errors());
|
||||
m_jump_to_button->set_tooltip("Jump to today");
|
||||
m_jump_to_button->set_tooltip_deprecated("Jump to today");
|
||||
m_jump_to_button->on_click = [this](auto) {
|
||||
jump_to_current_date();
|
||||
};
|
||||
|
@ -116,7 +116,7 @@ ClockWidget::ClockWidget()
|
|||
m_calendar_launcher->set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
m_calendar_launcher->set_fixed_size(24, 24);
|
||||
m_calendar_launcher->set_icon(Gfx::Bitmap::load_from_file("/res/icons/16x16/app-calendar.png"sv).release_value_but_fixme_should_propagate_errors());
|
||||
m_calendar_launcher->set_tooltip("Calendar");
|
||||
m_calendar_launcher->set_tooltip_deprecated("Calendar");
|
||||
m_calendar_launcher->on_click = [this](auto) {
|
||||
GUI::Process::spawn_or_show_error(window(), "/bin/Calendar"sv);
|
||||
};
|
||||
|
|
|
@ -191,7 +191,7 @@ ErrorOr<void> QuickLaunchWidget::add_or_adjust_button(DeprecatedString const& bu
|
|||
button->set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
auto icon = entry->icon();
|
||||
button->set_icon(icon.bitmap_for_size(16));
|
||||
button->set_tooltip(entry->name());
|
||||
button->set_tooltip_deprecated(entry->name());
|
||||
button->set_name(button_name);
|
||||
button->on_click = [entry = move(entry), this](auto) {
|
||||
auto result = entry->launch();
|
||||
|
|
|
@ -89,7 +89,7 @@ ErrorOr<void> TaskbarWindow::populate_taskbar()
|
|||
m_clock_widget = TRY(main_widget->try_add<Taskbar::ClockWidget>());
|
||||
|
||||
m_show_desktop_button = TRY(main_widget->try_add<GUI::Button>());
|
||||
m_show_desktop_button->set_tooltip("Show Desktop");
|
||||
m_show_desktop_button->set_tooltip_deprecated("Show Desktop");
|
||||
m_show_desktop_button->set_icon(TRY(GUI::Icon::try_create_default_icon("desktop"sv)).bitmap_for_size(16));
|
||||
m_show_desktop_button->set_button_style(Gfx::ButtonStyle::Coolbar);
|
||||
m_show_desktop_button->set_fixed_size(24, 24);
|
||||
|
@ -199,7 +199,7 @@ void TaskbarWindow::update_window_button(::Window& window, bool show_as_active)
|
|||
if (!button)
|
||||
return;
|
||||
button->set_text(String::from_deprecated_string(window.title()).release_value_but_fixme_should_propagate_errors());
|
||||
button->set_tooltip(window.title());
|
||||
button->set_tooltip_deprecated(window.title());
|
||||
button->set_checked(show_as_active);
|
||||
button->set_visible(is_window_on_current_workspace(window));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue