diff options
author | Philip Withnall <pwithnall@gnome.org> | 2023-11-29 13:23:09 +0000 |
---|---|---|
committer | Philip Withnall <pwithnall@gnome.org> | 2023-11-29 13:41:12 +0000 |
commit | f3aebf0c157dc7ddf250b7d22f5d9f338f1317e2 (patch) | |
tree | e86325a0900cefe1a7d77b172b03b6ca8d332255 /gio/gcharsetconverter.c | |
parent | f6a1599e3c8fcb0d3cb56b10c05734642b202d15 (diff) |
gio: Add various missing property documentation comments
Previously these properties would have been documented using the strings
from the pspec, but those will be removed in the following commit. Re-add
the documentation using those strings, but as gi-docgen documentation
comments.
Signed-off-by: Philip Withnall <pwithnall@gnome.org>
Helps: #2991
Diffstat (limited to 'gio/gcharsetconverter.c')
-rw-r--r-- | gio/gcharsetconverter.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/gio/gcharsetconverter.c b/gio/gcharsetconverter.c index ce9c1368a..3b46f8845 100644 --- a/gio/gcharsetconverter.c +++ b/gio/gcharsetconverter.c @@ -152,6 +152,13 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) gobject_class->get_property = g_charset_converter_get_property; gobject_class->set_property = g_charset_converter_set_property; + /** + * GCharsetConverter:to-charset: + * + * The character encoding to convert to. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_TO_CHARSET, g_param_spec_string ("to-charset", @@ -160,6 +167,14 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GCharsetConverter:from-charset: + * + * The character encoding to convert from. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_FROM_CHARSET, g_param_spec_string ("from-charset", @@ -168,6 +183,14 @@ g_charset_converter_class_init (GCharsetConverterClass *klass) NULL, G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY | G_PARAM_STATIC_STRINGS)); + + /** + * GCharsetConverter:use-fallback: + * + * Use fallback (of form `\<hexval>`) for invalid bytes. + * + * Since: 2.24 + */ g_object_class_install_property (gobject_class, PROP_USE_FALLBACK, g_param_spec_boolean ("use-fallback", |