From d768d8b690d489e49775721397069fadbe331428 Mon Sep 17 00:00:00 2001 From: "anthropic-code-agent[bot]" <242468646+Claude@users.noreply.github.com> Date: Sat, 4 Apr 2026 15:33:54 +0000 Subject: [PATCH] Fix HTML entity encoding in main window labels - Fix model family label to use set_markup() instead of set_text() - Fix family label tooltip to use markup mode - Fix name label tooltip to use markup mode - All labels now properly render HTML entities like quotes Agent-Logs-Url: https://github.com/ashaduri/gsmartcontrol/sessions/d14daedd-b7c3-45ae-adf0-b9de6c8ea901 Co-authored-by: ashaduri <2302268+ashaduri@users.noreply.github.com> --- src/gui/gsc_main_window.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/gsc_main_window.cpp b/src/gui/gsc_main_window.cpp index b25873b..2d5ff9d 100644 --- a/src/gui/gsc_main_window.cpp +++ b/src/gui/gsc_main_window.cpp @@ -765,7 +765,7 @@ void GscMainWindow::update_status_widgets() + (model.empty() ? "" : (", " + model)); if (name_label_) { name_label_->set_markup(info_str); - app_gtkmm_set_widget_tooltip(*name_label_, info_str, false); // in case it doesn't fit + app_gtkmm_set_widget_tooltip(*name_label_, info_str, true); // in case it doesn't fit } const StorageProperty health_prop = drive->get_health_property(); @@ -793,8 +793,8 @@ void GscMainWindow::update_status_widgets() } if (family_label_) { - family_label_->set_text(family); - app_gtkmm_set_widget_tooltip(*family_label_, family, false); // in case it doesn't fit + family_label_->set_markup(family); + app_gtkmm_set_widget_tooltip(*family_label_, family, true); // in case it doesn't fit } // std::string status_str = " " + device + (size.empty() ? "" : (", " + size)) + (family_fallback.empty() ? "" : (", " + family_fallback));