builder: Fix g-i annotations of _get_translation_domain
authorTimm Bäder <mail@baedert.org>
Sat, 16 Jun 2018 13:25:14 +0000 (15:25 +0200)
committerTimm Bäder <mail@baedert.org>
Mon, 18 Jun 2018 15:35:02 +0000 (17:35 +0200)
The return value can be null and is (transfer none).

gtk/gtkbuilder.c

index 88d11e14f238b3384843d00cca9615d74081de9e..5e5ce9fd65217414b6e76ece8f43677d577bfa43 100644 (file)
@@ -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)