[glib] Better documentation for g_value_dup_object().
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Better documentation for g_value_dup_object().
- Date: Wed, 16 Feb 2011 05:21:44 +0000 (UTC)
commit 6cd08472b20004d6ef06c6063fed817fdb9bc1f5
Author: Stef Walter <stefw collabora co uk>
Date: Tue Feb 15 19:54:53 2011 +0100
Better documentation for g_value_dup_object().
State that NULL is returned when value is NULL.
gobject/gobject.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index d32432c..c31ec52 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -3214,7 +3214,8 @@ g_value_get_object (const GValue *value)
* @value: a valid #GValue whose type is derived from %G_TYPE_OBJECT
*
* Get the contents of a %G_TYPE_OBJECT derived #GValue, increasing
- * its reference count.
+ * its reference count. If the contents of the #GValue are %NULL, then
+ * %NULL will be returned.
*
* Returns: (type GObject.Object) (transfer full): object content of @value,
* should be unreferenced when no longer needed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]