[gnome-software] Fall back to a stock icon for hardware drivers
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Fall back to a stock icon for hardware drivers
- Date: Fri, 24 Mar 2017 11:21:59 +0000 (UTC)
commit c9de5f046eb84275881c74fd5500a0b8a7179fb0
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 d0980f8..578a5d9 100644
--- a/plugins/core/gs-appstream.c
+++ b/plugins/core/gs-appstream.c
@@ -1139,6 +1139,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]