[glib] Expand the documentation of g_type_get_qdata()



commit 2a1eed20b40c2ad4211ed0adb0d17983e5dcaec6
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]