[gnome-software] trivial: Never repeat the AppStream icon refine
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Never repeat the AppStream icon refine
- Date: Thu, 2 Jun 2016 17:38:35 +0000 (UTC)
commit c206aabf9582d7dad896b3da3bb0c253169fa696
Author: Richard Hughes <richard hughsie com>
Date: Thu Jun 2 18:37:16 2016 +0100
trivial: Never repeat the AppStream icon refine
This is fallout from the plugin icon->pixbuf port.
src/plugins/gs-appstream.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 1c08c7b..781fb5e 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -60,7 +60,7 @@ gs_appstream_get_icon_by_kind_and_size (AsApp *app, AsIconKind icon_kind, guint
}
static void
-gs_refine_item_pixbuf (GsPlugin *plugin, GsApp *app, AsApp *item)
+gs_refine_item_icon (GsPlugin *plugin, GsApp *app, AsApp *item)
{
AsIcon *icon;
@@ -554,8 +554,9 @@ gs_appstream_refine_app (GsPlugin *plugin,
}
/* set icon */
- if (as_app_get_icon_default (item) != NULL && gs_app_get_pixbuf (app) == NULL)
- gs_refine_item_pixbuf (plugin, app, item);
+ if (as_app_get_icon_default (item) != NULL &&
+ gs_app_get_icons(app)->len == 0)
+ gs_refine_item_icon (plugin, app, item);
/* set categories */
if (as_app_get_categories (item) != NULL &&
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]