[gnome-software] Set snap summary from snapd response



commit 7d836dcfb76dc99e99f1b47d90f90b7295112ab0
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 3882b8c..1bf5edb 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]