From 70b96eeb787fc8b698f58cf7cc1e1bc016367fe4 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 1 Nov 2019 17:20:05 +0100 Subject: as-app: add "icon-theme" as recognised component type --- libappstream-glib/as-app.c | 2 ++ libappstream-glib/as-app.h | 2 ++ 2 files changed, 4 insertions(+) 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; -- cgit v1.2.1