explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during
authorSven Herzberg <herzi@gnome-de.org>
Sun, 8 Jan 2006 15:13:28 +0000 (15:13 +0000)
committerSven Herzberg <herzi@src.gnome.org>
Sun, 8 Jan 2006 15:13:28 +0000 (15:13 +0000)
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

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
docs/reference/gobject/tmpl/gtype.sgml

index 1e9a342..e9cc251 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+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
+
 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gslice.c: Only define _XOPEN_SOURCE if we know
index 1e9a342..e9cc251 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gslice.c: Only define _XOPEN_SOURCE if we know
index 1e9a342..e9cc251 100644 (file)
@@ -1,3 +1,9 @@
+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
+
 2006-01-06  Matthias Clasen  <mclasen@redhat.com>
 
        * glib/gslice.c: Only define _XOPEN_SOURCE if we know
index bdcdde2..9ca599c 100644 (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>