[gnome-software/wip/kalev/codecs: 8/12] app row: Don't escape missing description



commit 772da66a06c3c39eb8942a5e6c6672ea002effaa
Author: Kalev Lember <kalevlember gmail com>
Date:   Fri Feb 6 09:44:38 2015 +0100

    app row: Don't escape missing description
    
    This allows us to show a hyperlink in missing codec app descriptions.

 src/gs-app-row.c |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 815eedd..dc63619 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -95,9 +95,10 @@ gs_app_row_get_description (GsAppRow *app_row)
                }
        }
 
-       /* try all these things in order */
        if (gs_app_get_kind (priv->app) == GS_APP_KIND_MISSING)
-               tmp = gs_app_get_summary_missing (priv->app);
+               return g_string_new (gs_app_get_summary_missing (priv->app));
+
+       /* try all these things in order */
        if (tmp == NULL || (tmp != NULL && tmp[0] == '\0'))
                tmp = gs_app_get_description (priv->app);
        if (tmp == NULL || (tmp != NULL && tmp[0] == '\0'))


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