[glib: 2/3] g_object_get_property: Document accepting G_VALUE_INIT as new API



commit 41d31cd4b7f287f275eb5f10aabb4e67a8c08bef
Author: Simon McVittie <smcv collabora com>
Date:   Wed Jun 5 10:50:07 2019 +0100

    g_object_get_property: Document accepting G_VALUE_INIT as new API
    
    Code intended to be portable to older versions of GLib cannot rely
    on this being considered valid.
    
    Signed-off-by: Simon McVittie <smcv collabora com>

 gobject/gobject.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/gobject/gobject.c b/gobject/gobject.c
index ea515796f..895ba8845 100644
--- a/gobject/gobject.c
+++ b/gobject/gobject.c
@@ -2573,6 +2573,7 @@ g_object_set_property (GObject        *object,
  *
  *  - an empty #GValue initialized by %G_VALUE_INIT, which will be
  *    automatically initialized with the expected type of the property
+ *    (since GLib 2.60)
  *  - a #GValue initialized with the expected type of the property
  *  - a #GValue initialized with a type to which the expected type
  *    of the property can be transformed


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]