Merge pull request #2209 from Matias-Hall/river_window_tooltip

pull/2210/head
Alex 2023-06-05 12:39:38 +02:00 committed by GitHub
commit 938a93a0d7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 1 deletions

View File

@ -106,7 +106,11 @@ void Window::handle_focused_view(const char *title) {
label_.hide(); // hide empty labels or labels with empty format label_.hide(); // hide empty labels or labels with empty format
} else { } else {
label_.show(); label_.show();
label_.set_markup(fmt::format(fmt::runtime(format_), Glib::Markup::escape_text(title).raw())); auto text = fmt::format(fmt::runtime(format_), Glib::Markup::escape_text(title).raw());
label_.set_markup(text);
if (tooltipEnabled()) {
label_.set_tooltip_markup(text);
}
} }
ALabel::update(); ALabel::update();