summaryrefslogtreecommitdiff
path: root/libappstream-glib
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2014-10-29 14:45:06 +0000
committerRichard Hughes <richard@hughsie.com>2014-10-29 14:45:06 +0000
commit9c2aef42297ed89def16ba392f4b48c016ff0a27 (patch)
treebf1f4528593edf54f5af8642bdacf35f1ae35e80 /libappstream-glib
parent220eb36753388d9c3a5a6ba2655c54ce1f9417e9 (diff)
downloadappstream-glib-9c2aef42297ed89def16ba392f4b48c016ff0a27.tar.gz
Set the icon prefix when parsing DEP11 data
Diffstat (limited to 'libappstream-glib')
-rw-r--r--libappstream-glib/as-app.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index d0207e3..a8782f7 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -3481,6 +3481,7 @@ as_app_node_parse (AsApp *app, GNode *node, GError **error)
gboolean
as_app_node_parse_dep11 (AsApp *app, GNode *node, GError **error)
{
+ AsAppPrivate *priv = GET_PRIVATE (app);
GNode *c;
GNode *c2;
GNode *n;
@@ -3549,6 +3550,7 @@ as_app_node_parse_dep11 (AsApp *app, GNode *node, GError **error)
for (c = n->children; c != NULL; c = c->next) {
_cleanup_object_unref_ AsIcon *ic = NULL;
ic = as_icon_new ();
+ as_icon_set_prefix (ic, priv->icon_path);
if (!as_icon_node_parse_dep11 (ic, c, error))
return FALSE;
as_app_add_icon (app, ic);