diff options
author | Richard Hughes <richard@hughsie.com> | 2016-08-09 12:31:35 +0100 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-08-09 13:04:07 +0100 |
commit | 486ff9615ecbfb024a6b24319038d8c15de32f4b (patch) | |
tree | 179020333d23288dd8b35c101684c558da0bfef7 /libappstream-glib/as-enums.c | |
parent | fe430efc51c0d449e81137955b1ec280b89896bf (diff) | |
download | appstream-glib-486ff9615ecbfb024a6b24319038d8c15de32f4b.tar.gz |
Add the TRANSLATE URL kind
Diffstat (limited to 'libappstream-glib/as-enums.c')
-rw-r--r-- | libappstream-glib/as-enums.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libappstream-glib/as-enums.c b/libappstream-glib/as-enums.c index 67ac09c..b7dc871 100644 --- a/libappstream-glib/as-enums.c +++ b/libappstream-glib/as-enums.c @@ -92,6 +92,8 @@ as_url_kind_to_string (AsUrlKind url_kind) return "help"; if (url_kind == AS_URL_KIND_MISSING) return "missing"; + if (url_kind == AS_URL_KIND_TRANSLATE) + return "translate"; return "unknown"; } @@ -120,6 +122,8 @@ as_url_kind_from_string (const gchar *url_kind) return AS_URL_KIND_HELP; if (g_strcmp0 (url_kind, "missing") == 0) return AS_URL_KIND_MISSING; + if (g_strcmp0 (url_kind, "translate") == 0) + return AS_URL_KIND_TRANSLATE; return AS_URL_KIND_UNKNOWN; } |