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
This commit is contained in:
Sven Herzberg
2006-01-08 15:13:28 +00:00
committed by Sven Herzberg
parent 08a8b8517d
commit 82395be214
4 changed files with 24 additions and 2 deletions

View File

@@ -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>