From: Timm Bäder Date: Sat, 16 Jun 2018 13:25:14 +0000 (+0200) Subject: builder: Fix g-i annotations of _get_translation_domain X-Git-Tag: archive/raspbian/4.4.1+ds1-2+rpi1^2~18^2~22^2~155 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3be2cb8f635954224238a7753f1ee69048e24247;p=gtk4.git builder: Fix g-i annotations of _get_translation_domain The return value can be null and is (transfer none). --- diff --git a/gtk/gtkbuilder.c b/gtk/gtkbuilder.c index 88d11e14f2..5e5ce9fd65 100644 --- a/gtk/gtkbuilder.c +++ b/gtk/gtkbuilder.c @@ -1546,7 +1546,7 @@ gtk_builder_get_objects (GtkBuilder *builder) /** * gtk_builder_set_translation_domain: * @builder: a #GtkBuilder - * @domain: (allow-none): the translation domain or %NULL + * @domain: (nullable): the translation domain or %NULL * * Sets the translation domain of @builder. * See #GtkBuilder:translation-domain. @@ -1573,8 +1573,9 @@ gtk_builder_set_translation_domain (GtkBuilder *builder, * * Gets the translation domain of @builder. * - * Returns: the translation domain. This string is owned - * by the builder object and must not be modified or freed. + * Returns: (transfer none) (nullable): the translation domain or %NULL + * in case it was never set or explicitly unset via gtk_builder_set_translation_domain(). + * This string is owned by the builder object and must not be modified or freed. **/ const gchar * gtk_builder_get_translation_domain (GtkBuilder *builder)