[gnome-software/gnome-3-22] Set snap summary from snapd response



commit 7e521c6dd334e4538b27624b25ba8c6f4fe699c6
Author: William Hua <william hua canonical com>
Date:   Fri Sep 30 17:13:41 2016 -0400

    Set snap summary from snapd response
    
    https://bugs.launchpad.net/ubuntu/+source/gnome-software/+bug/1629456

 src/plugins/gs-plugin-snap.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/plugins/gs-plugin-snap.c b/src/plugins/gs-plugin-snap.c
index 0a84223..7310c9f 100644
--- a/src/plugins/gs-plugin-snap.c
+++ b/src/plugins/gs-plugin-snap.c
@@ -128,7 +128,9 @@ refine_app (GsPlugin *plugin, GsApp *app, JsonObject *package, gboolean from_sea
        gs_app_set_name (app, GS_APP_QUALITY_HIGHEST,
                         json_object_get_string_member (package, "summary"));
        gs_app_set_summary (app, GS_APP_QUALITY_HIGHEST,
-                           json_object_get_string_member (package, "description"));
+                           json_object_get_string_member (package, "summary"));
+       gs_app_set_description (app, GS_APP_QUALITY_HIGHEST,
+                               json_object_get_string_member (package, "description"));
        gs_app_set_version (app, json_object_get_string_member (package, "version"));
        if (json_object_has_member (package, "installed-size")) {
                size = json_object_get_int_member (package, "installed-size");


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