summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-app-desktop.c
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2016-09-05 09:16:21 +0100
committerRichard Hughes <richard@hughsie.com>2016-09-05 09:57:56 +0100
commit0076c8b8b79faea1c435bf8c5c34b481a53733a2 (patch)
tree1cd8973b7a915fdc30479b88f9a60f1c4f4f14e2 /libappstream-glib/as-app-desktop.c
parentdfe2de8965b9e0d9d5f18d374c712a0ac2b23e4f (diff)
downloadappstream-glib-0076c8b8b79faea1c435bf8c5c34b481a53733a2.tar.gz
Convert the built unknown icons to the correct kind depending on the action
For building we want ->CACHED, for parsing local files we want ->STOCK. Fixes the other half of https://github.com/hughsie/appstream-glib/pull/128
Diffstat (limited to 'libappstream-glib/as-app-desktop.c')
-rw-r--r--libappstream-glib/as-app-desktop.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libappstream-glib/as-app-desktop.c b/libappstream-glib/as-app-desktop.c
index 0852c55..0f78b5b 100644
--- a/libappstream-glib/as-app-desktop.c
+++ b/libappstream-glib/as-app-desktop.c
@@ -177,8 +177,7 @@ as_app_desktop_create_icon (AsApp *app, const gchar *name, AsAppParseFlags flags
return icon;
}
- /* just use default: FIXME, this is the wrong kind, use UNKNOWN */
- as_icon_set_kind (icon, AS_ICON_KIND_LOCAL);
+ /* just use default of UNKNOWN */
as_icon_set_name (icon, name_fixed);
return icon;
}