[gnome-software] Support the LOCAL AppStream icon type



commit 4eb9a862ece264df375d7332f23ba18e10481a63
Author: Richard Hughes <richard hughsie com>
Date:   Tue Oct 21 12:04:27 2014 +0100

    Support the LOCAL AppStream icon type

 src/plugins/gs-plugin-appstream.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-plugin-appstream.c b/src/plugins/gs-plugin-appstream.c
index cb00143..c3abaab 100644
--- a/src/plugins/gs-plugin-appstream.c
+++ b/src/plugins/gs-plugin-appstream.c
@@ -208,6 +208,7 @@ gs_plugin_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AsApp *item)
                gs_app_set_icon (app, as_icon_get_name (icon));
                break;
        case AS_ICON_KIND_STOCK:
+       case AS_ICON_KIND_LOCAL:
                gs_app_set_icon (app, as_icon_get_name (icon));
                ret = gs_app_load_icon (app, plugin->scale, &error);
                if (!ret) {
@@ -309,6 +310,9 @@ gs_plugin_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AsApp *item)
        case AS_ICON_KIND_REMOTE:
                gs_app_set_icon (app, icon);
                break;
+#if AS_CHECK_VERSION(0,2,7)
+       case AS_ICON_KIND_LOCAL:
+#endif
        case AS_ICON_KIND_STOCK:
                gs_app_set_icon (app, icon);
                ret = gs_app_load_icon (app, plugin->scale, &error);


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