[gnome-software/wip/update-details-markup] gs-app-details-page: Set update details markup as markup, not as plain text



commit 620b1b6a587253286a0b02832986a4e75443132c
Author: Milan Crha <mcrha redhat com>
Date:   Thu Jul 14 07:43:50 2022 +0200

    gs-app-details-page: Set update details markup as markup, not as plain text
    
    Otherwise the markup-escaped text is shown as escape sequences,
    instead of human-readable text.
    
    This had been reported downstream at:
    https://bugzilla.redhat.com/show_bug.cgi?id=2106872

 src/gs-app-details-page.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/gs-app-details-page.c b/src/gs-app-details-page.c
index 27a296d98..80de5ea56 100644
--- a/src/gs-app-details-page.c
+++ b/src/gs-app-details-page.c
@@ -195,7 +195,7 @@ set_updates_description_ui (GsAppDetailsPage *page, GsApp *app)
                 * a description for the update */
                update_details = _("No update description available.");
        }
-       gtk_label_set_label (GTK_LABEL (page->label_details), update_details);
+       gtk_label_set_markup (GTK_LABEL (page->label_details), update_details);
        adw_status_page_set_title (ADW_STATUS_PAGE (page->status_page), gs_app_get_name (app));
        adw_status_page_set_description (ADW_STATUS_PAGE (page->status_page), gs_app_get_summary (app));
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]