[gnome-software] Refine the AppStream-defined featured application



commit 158387e1d9b9cd61ce784e0963b1c836dfb273bc
Author: Richard Hughes <richard hughsie com>
Date:   Mon May 23 16:07:02 2016 +0100

    Refine the AppStream-defined featured application
    
    If we are in a flatpak-only environment the GnomeSoftware::FeatureTile-css was
    not being used for returned applicatons, which meant we did not get a beautiful
    banner on the overview page.

 src/plugins/gs-plugin-appstream.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index 07cb738..a5bae2c 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -620,6 +620,8 @@ gs_plugin_add_featured (GsPlugin *plugin,
                if (as_app_get_metadata_item (item, "GnomeSoftware::FeatureTile-css") == NULL)
                        continue;
                app = gs_app_new (as_app_get_id_no_prefix (item));
+               if (!gs_appstream_refine_app (plugin, app, item, error))
+                       return FALSE;
                gs_app_add_quirk (app, AS_APP_QUIRK_MATCH_ANY_PREFIX);
                gs_app_list_add (list, app);
        }


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