From 3be2cb8f635954224238a7753f1ee69048e24247 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timm=20B=C3=A4der?= Date: Sat, 16 Jun 2018 15:25:14 +0200 Subject: [PATCH] builder: Fix g-i annotations of _get_translation_domain The return value can be null and is (transfer none). --- gtk/gtkbuilder.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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)