[gnome-software] trivial: Add some more debugging for unknown icon types
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Add some more debugging for unknown icon types
- Date: Mon, 26 Sep 2016 15:26:48 +0000 (UTC)
commit b1a09f81246d2b707b5204002adf56919e7eefef
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 26 16:22:47 2016 +0100
trivial: Add some more debugging for unknown icon types
src/plugins/gs-appstream.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/gs-appstream.c b/src/plugins/gs-appstream.c
index 0d1daec..22a3f55 100644
--- a/src/plugins/gs-appstream.c
+++ b/src/plugins/gs-appstream.c
@@ -116,6 +116,11 @@ gs_refine_item_icon (GsPlugin *plugin, GsApp *app, AsApp *item)
icon = gs_appstream_get_icon_by_kind (item, AS_ICON_KIND_REMOTE);
if (icon != NULL)
gs_app_add_icon (app, icon);
+
+ /* unhandled icon type */
+ icon = as_app_get_icon_default (item);
+ g_warning ("could not refine using icon of type: %s",
+ as_icon_kind_to_string (as_icon_get_kind (icon)));
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]