[gnome-software] trivial: Adapt to new API in libappstream-glib



commit c7169e6c2d05b94aa356b5a03779ecc0e62a887a
Author: Richard Hughes <richard hughsie com>
Date:   Thu Mar 3 17:41:48 2016 +0000

    trivial: Adapt to new API in libappstream-glib
    
    This symbol is new, and in no appstream-glib releases yet so it's technically
    not an API break.

 src/plugins/gs-plugin-shell-extensions.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/gs-plugin-shell-extensions.c b/src/plugins/gs-plugin-shell-extensions.c
index 3541ef6..0d3ecc4 100644
--- a/src/plugins/gs-plugin-shell-extensions.c
+++ b/src/plugins/gs-plugin-shell-extensions.c
@@ -130,7 +130,9 @@ gs_plugin_shell_extensions_add_app (const gchar *uuid,
                if (g_strcmp0 (str, "description") == 0) {
                        g_autofree gchar *tmp1 = NULL;
                        g_autofree gchar *tmp2 = NULL;
-                       tmp1 = as_markup_import (g_variant_get_string (val, NULL));
+                       tmp1 = as_markup_import (g_variant_get_string (val, NULL),
+                                                AS_MARKUP_CONVERT_FORMAT_SIMPLE,
+                                                NULL);
                        tmp2 = as_markup_convert_simple (tmp1, error);
                        if (tmp2 == NULL)
                                return NULL;
@@ -420,7 +422,9 @@ gs_plugin_shell_extensions_parse_app (GsPlugin *plugin,
        tmp = json_object_get_string_member (json_app, "description");
        if (tmp != NULL) {
                g_autofree gchar *desc = NULL;
-               desc = as_markup_import (tmp);
+               desc = as_markup_import (tmp, AS_MARKUP_CONVERT_FORMAT_SIMPLE, error);
+               if (desc == NULL)
+                       return NULL;
                as_app_set_description (app, NULL, desc);
        }
        tmp = json_object_get_string_member (json_app, "name");


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