[glib] gobject: Add missing annotations to GValue variant methods
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gobject: Add missing annotations to GValue variant methods
- Date: Tue, 28 Nov 2017 14:30:34 +0000 (UTC)
commit aca410c5869edb344aaaeb98957c0033391c1e0a
Author: Philip Withnall <withnall endlessm com>
Date: Wed Nov 15 12:28:52 2017 +0000
gobject: Add missing annotations to GValue variant methods
They were missing some (nullable) and (transfer) annotations.
Signed-off-by: Philip Withnall <withnall endlessm com>
https://bugzilla.gnome.org/show_bug.cgi?id=741167
gobject/gvaluetypes.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/gobject/gvaluetypes.c b/gobject/gvaluetypes.c
index 0afa8bd..4cc778b 100644
--- a/gobject/gvaluetypes.c
+++ b/gobject/gvaluetypes.c
@@ -1281,7 +1281,7 @@ g_value_take_variant (GValue *value,
*
* Get the contents of a variant #GValue.
*
- * Returns: variant contents of @value
+ * Returns: (nullable): variant contents of @value (may be %NULL)
*
* Since: 2.26
*/
@@ -1297,10 +1297,11 @@ g_value_get_variant (const GValue *value)
* g_value_dup_variant:
* @value: a valid #GValue of type %G_TYPE_VARIANT
*
- * Get the contents of a variant #GValue, increasing its refcount.
+ * Get the contents of a variant #GValue, increasing its refcount. The returned
+ * #GVariant is never floating.
*
- * Returns: variant contents of @value, should be unrefed using
- * g_variant_unref() when no longer needed
+ * Returns: (transfer full) (nullable): variant contents of @value (may be %NULL);
+ * should be unreffed using g_variant_unref() when no longer needed
*
* Since: 2.26
*/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]