summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabio Valentini <decathorpe@gmail.com>2019-11-01 17:20:05 +0100
committerRichard Hughes <richard@hughsie.com>2019-11-01 18:47:56 +0000
commit70b96eeb787fc8b698f58cf7cc1e1bc016367fe4 (patch)
tree8a9e58aa93eea9cca627c19cdefac7410bbdb7d2
parentd407862968c6528f44c93102e53da5664ffc8f4d (diff)
downloadappstream-glib-70b96eeb787fc8b698f58cf7cc1e1bc016367fe4.tar.gz
as-app: add "icon-theme" as recognised component type
-rw-r--r--libappstream-glib/as-app.c2
-rw-r--r--libappstream-glib/as-app.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-app.c b/libappstream-glib/as-app.c
index 1749b38..7bc0bf9 100644
--- a/libappstream-glib/as-app.c
+++ b/libappstream-glib/as-app.c
@@ -217,6 +217,8 @@ as_app_kind_from_string (const gchar *kind)
return AS_APP_KIND_CONSOLE;
if (g_strcmp0 (kind, "driver") == 0)
return AS_APP_KIND_DRIVER;
+ if (g_strcmp0 (kind, "icon-theme") == 0)
+ return AS_APP_KIND_ICON_THEME;
/* legacy */
if (g_strcmp0 (kind, "desktop") == 0)
diff --git a/libappstream-glib/as-app.h b/libappstream-glib/as-app.h
index ca129b5..5e0c43c 100644
--- a/libappstream-glib/as-app.h
+++ b/libappstream-glib/as-app.h
@@ -298,6 +298,7 @@ typedef AsFormatKind AsAppSourceKind;
* @AS_APP_KIND_LOCALIZATION: Localization data
* @AS_APP_KIND_CONSOLE: Console program
* @AS_APP_KIND_DRIVER: Driver for hardware support
+ * @AS_APP_KIND_ICON_THEME: An icon theme
*
* The component type.
**/
@@ -319,6 +320,7 @@ typedef enum {
AS_APP_KIND_LOCALIZATION, /* Since: 0.5.11 */
AS_APP_KIND_CONSOLE, /* Since: 0.6.1 */
AS_APP_KIND_DRIVER, /* Since: 0.6.3 */
+ AS_APP_KIND_ICON_THEME, /* Since: 0.7.17 */
/*< private >*/
AS_APP_KIND_LAST
} AsAppKind;