summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorSven Herzberg <herzi@gnome-de.org>2006-01-08 15:13:28 +0000
committerSven Herzberg <herzi@src.gnome.org>2006-01-08 15:13:28 +0000
commit82395be2142e4c7702a19ddd2991a54c9add4eff (patch)
treee249280482e73c2300e79783fd9e0caeaddbe315 /docs
parent08a8b8517d294564e9228ea16960da480c8ee795 (diff)
downloadglib-82395be2142e4c7702a19ddd2991a54c9add4eff.tar.gz
explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during
2005-12-20 Sven Herzberg <herzi@gnome-de.org> * docs/reference/gobject/tmpl/gtype.sgml: explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during initialization
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/gobject/tmpl/gtype.sgml8
1 files changed, 6 insertions, 2 deletions
diff --git a/docs/reference/gobject/tmpl/gtype.sgml b/docs/reference/gobject/tmpl/gtype.sgml
index bdcdde2ff..9ca599caa 100644
--- a/docs/reference/gobject/tmpl/gtype.sgml
+++ b/docs/reference/gobject/tmpl/gtype.sgml
@@ -470,9 +470,13 @@ This macro should only be used in type implementations.
<!-- ##### MACRO G_TYPE_INSTANCE_GET_CLASS ##### -->
<para>
Returns the class structure of a given @instance, casted
-to a specified anchestor type @g_type of the instance.
-<para>
+to a specified ancestor type @g_type of the instance.
</para>
+<warning><para>Note
+that while calling a GInstanceInitFunc(), the class pointer gets
+modified, so it might not always return the expected pointer.
+</para></warning>
+<para>
This macro should only be used in type implementations.
</para>