[gnome-software/gnome-3-24] Fall back to a stock icon for hardware drivers



commit 90737fa0baefda4cd014e871667d28900e804201
Author: Richard Hughes <richard hughsie com>
Date:   Fri Mar 24 11:21:41 2017 +0000

    Fall back to a stock icon for hardware drivers

 plugins/core/gs-appstream.c |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/core/gs-appstream.c b/plugins/core/gs-appstream.c
index d5c82f6..ed66f5b 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -1144,6 +1144,15 @@ gs_appstream_add_extra_info (GsPlugin *plugin, AsApp *app)
                as_app_add_category (app, "Localization");
        }
 
+       /* fall back for drivers */
+       if (as_app_get_kind (app) == AS_APP_KIND_DRIVER) {
+               g_autoptr(AsIcon) icon = NULL;
+               icon = as_icon_new ();
+               as_icon_set_kind (icon, AS_ICON_KIND_STOCK);
+               as_icon_set_name (icon, "application-x-firmware-symbolic");
+               as_app_add_icon (app, icon);
+       }
+
        /* fix up drivers with our nonstandard groups */
        if (as_app_get_kind (app) == AS_APP_KIND_DRIVER) {
                as_app_add_category (app, "Addons");


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