g_object_get_property: document that value must be initialized
[platform/upstream/glib.git] / gobject / gobject.c
index 8b427fa..f1fa54d 100644 (file)
@@ -1906,7 +1906,9 @@ g_object_set_property (GObject        *object,
  * @property_name: the name of the property to get
  * @value: return location for the property value
  *
- * Gets a property of an object.
+ * Gets a property of an object. @value must have been initialized to the
+ * expected type of the property (or a type to which the expected type can be
+ * transformed) using g_value_init().
  *
  * In general, a copy is made of the property contents and the caller is
  * responsible for freeing the memory by calling g_value_unset().