[glib/glib-2-28] Expand the documentation of g_type_get_qdata()



commit 1ec5c4401a0097c34fb3093ca8ece07a4e10d7c1
Author: Matthias Clasen <mclasen redhat com>
Date:   Fri Feb 18 22:35:49 2011 -0500

    Expand the documentation of g_type_get_qdata()
    
    https://bugzilla.gnome.org/show_bug.cgi?id=613269

 gobject/gtype.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gobject/gtype.c b/gobject/gtype.c
index dac5e8f..9439939 100644
--- a/gobject/gtype.c
+++ b/gobject/gtype.c
@@ -3652,6 +3652,10 @@ type_get_qdata_L (TypeNode *node,
  * Obtains data which has previously been attached to @type
  * with g_type_set_qdata().
  *
+ * Note that this does not take subtyping into account; data
+ * attached to one type with g_type_set_qdata() cannot
+ * be retrieved from a subtype using g_type_get_qdata().
+ *
  * Returns: (transfer none): the data, or %NULL if no data was found
  */
 gpointer



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