From d025a7f5b31fb915d64f70c4200d266c804a9f68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guido=20G=C3=BCnther?= Date: Tue, 9 Jan 2024 14:31:41 +0100 Subject: [PATCH] gvariant-parser: Mention annotated types g_variant_parse() supports g_variant_printf()s type annotations which can be needed e.g. in detailed action names. Reference: https://gitlab.gnome.org/GNOME/gtk/-/issues/6303#note_1958300 --- glib/gvariant-parser.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib/gvariant-parser.c b/glib/gvariant-parser.c index 7973ecf61..fb8a2fd2a 100644 --- a/glib/gvariant-parser.c +++ b/glib/gvariant-parser.c @@ -2502,7 +2502,8 @@ parse (TokenStream *stream, * then it will be set to reflect the error that occurred. * * Officially, the language understood by the parser is "any string - * produced by g_variant_print()". + * produced by g_variant_print()". This explicitly includes + * `g_variant_print()`’s annotated types like `int64 -1000`. * * There may be implementation specific restrictions on deeply nested values, * which would result in a %G_VARIANT_PARSE_ERROR_RECURSION error. #GVariant is