diff options
author | Sven Herzberg <herzi@gnome-de.org> | 2006-01-08 15:13:28 +0000 |
---|---|---|
committer | Sven Herzberg <herzi@src.gnome.org> | 2006-01-08 15:13:28 +0000 |
commit | 82395be2142e4c7702a19ddd2991a54c9add4eff (patch) | |
tree | e249280482e73c2300e79783fd9e0caeaddbe315 /docs | |
parent | 08a8b8517d294564e9228ea16960da480c8ee795 (diff) | |
download | glib-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.sgml | 8 |
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> |