[gnome-software] trivial: Support the <image> tags in appstream files



commit ee60798e67146ef458a0467cb3f05db93d9802ff
Author: Richard Hughes <richard hughsie com>
Date:   Thu Oct 3 16:29:39 2013 +0100

    trivial: Support the <image> tags in appstream files

 src/plugins/appstream-common.c |    4 ++++
 src/plugins/appstream-common.h |    1 +
 2 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/plugins/appstream-common.c b/src/plugins/appstream-common.c
index 5238e8b..77d0f8a 100644
--- a/src/plugins/appstream-common.c
+++ b/src/plugins/appstream-common.c
@@ -65,6 +65,8 @@ appstream_tag_from_string (const gchar *element_name)
                return APPSTREAM_TAG_SCREENSHOT;
        if (g_strcmp0 (element_name, "updatecontact") == 0)
                return APPSTREAM_TAG_UPDATECONTACT;
+       if (g_strcmp0 (element_name, "image") == 0)
+               return APPSTREAM_TAG_IMAGE;
        return APPSTREAM_TAG_UNKNOWN;
 }
 
@@ -110,5 +112,7 @@ appstream_tag_to_string (AppstreamTag tag)
                return "screenshot";
        if (tag == APPSTREAM_TAG_UPDATECONTACT)
                return "updatecontact";
+       if (tag == APPSTREAM_TAG_IMAGE)
+               return "image";
        return NULL;
 }
diff --git a/src/plugins/appstream-common.h b/src/plugins/appstream-common.h
index 879d8b0..fc4d3c7 100644
--- a/src/plugins/appstream-common.h
+++ b/src/plugins/appstream-common.h
@@ -46,6 +46,7 @@ typedef enum {
        APPSTREAM_TAG_SCREENSHOT,
        APPSTREAM_TAG_SCREENSHOTS,
        APPSTREAM_TAG_UPDATECONTACT,
+       APPSTREAM_TAG_IMAGE,
        APPSTREAM_TAG_LAST
 } AppstreamTag;
 


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