summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvan Nemerson <evan@nemerson.com>2014-05-07 16:29:01 -0700
committerMike Gorse <mgorse@suse.com>2014-06-07 15:09:55 -0500
commit644a50e6b09324e03478ebe821927e2aaf73f759 (patch)
treed2f09c06517bccf244d0346b92257bed57b34701
parent7529a9d658512f7fcef4b8c5fe476eb35035d308 (diff)
downloadat-spi2-core-644a50e6b09324e03478ebe821927e2aaf73f759.tar.gz
introspection: add some missing Returns: (nullable) annotations
-rw-r--r--atspi/atspi-accessible.c7
-rw-r--r--atspi/atspi-component.c7
-rw-r--r--atspi/atspi-hypertext.c4
-rw-r--r--atspi/atspi-text.c6
4 files changed, 13 insertions, 11 deletions
diff --git a/atspi/atspi-accessible.c b/atspi/atspi-accessible.c
index ccf1484b..7dd9fcfc 100644
--- a/atspi/atspi-accessible.c
+++ b/atspi/atspi-accessible.c
@@ -267,9 +267,10 @@ const char *str_parent = "Parent";
*
* Gets an #AtspiAccessible object's parent container.
*
- * Returns: (transfer full): a pointer to the #AtspiAccessible object which
- * contains the given #AtspiAccessible instance, or NULL if the @obj
- * has no parent container.
+ * Returns: (nullable) (transfer full): a pointer to the
+ * #AtspiAccessible object which contains the given
+ * #AtspiAccessible instance, or NULL if the @obj has no
+ * parent container.
*
**/
AtspiAccessible *
diff --git a/atspi/atspi-component.c b/atspi/atspi-component.c
index 31761cf7..a3755675 100644
--- a/atspi/atspi-component.c
+++ b/atspi/atspi-component.c
@@ -100,9 +100,10 @@ atspi_component_contains (AtspiComponent *obj,
*
* Gets the accessible child at a given coordinate within an #AtspiComponent.
*
- * Returns: (transfer full): a pointer to an #AtspiAccessible child of the
- * specified component which contains the point (@x, @y), or NULL if
- * no child contains the point.
+ * Returns: (nullable) (transfer full): a pointer to an
+ * #AtspiAccessible child of the specified component which
+ * contains the point (@x, @y), or NULL if no child contains
+ * the point.
**/
AtspiAccessible *
atspi_component_get_accessible_at_point (AtspiComponent *obj,
diff --git a/atspi/atspi-hypertext.c b/atspi/atspi-hypertext.c
index 748d2721..ca186eaa 100644
--- a/atspi/atspi-hypertext.c
+++ b/atspi/atspi-hypertext.c
@@ -56,8 +56,8 @@ atspi_hypertext_get_n_links (AtspiHypertext *obj, GError **error)
*
* Gets the #AtspiHyperlink object at a specified index.
*
- * Returns: (transfer full): the #AtspiHyperlink object specified by
- * @link_index.
+ * Returns: (nullable) (transfer full): the #AtspiHyperlink object
+ * specified by @link_index.
**/
AtspiHyperlink *
atspi_hypertext_get_link (AtspiHypertext *obj, gint link_index, GError **error)
diff --git a/atspi/atspi-text.c b/atspi/atspi-text.c
index 67510ea7..98a454b8 100644
--- a/atspi/atspi-text.c
+++ b/atspi/atspi-text.c
@@ -287,8 +287,8 @@ atspi_text_get_attribute_run (AtspiText *obj,
*
* Gets the value of a named attribute at a given offset.
*
- * Returns: the value of a given attribute at the given offset, or NULL if
- * not present.
+ * Returns: (nullable): the value of a given attribute at the given
+ * offset, or %NULL if not present.
*
* Deprecated: 2.10: Use atspi_text_get_text_attribute_value instead.
* Rename to: atspi_text_get_text_attribute_value
@@ -311,7 +311,7 @@ atspi_text_get_attribute_value (AtspiText *obj,
*
* Gets the value of a named attribute at a given offset.
*
- * Returns: the value of a given attribute at the given offset, or NULL if
+ * Returns: (nullable): the value of a given attribute at the given offset, or %NULL if
* not present.
**/
gchar *