From 82395be2142e4c7702a19ddd2991a54c9add4eff Mon Sep 17 00:00:00 2001 From: Sven Herzberg Date: Sun, 8 Jan 2006 15:13:28 +0000 Subject: [PATCH] explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during 2005-12-20 Sven Herzberg * docs/reference/gobject/tmpl/gtype.sgml: explain that G_TYPE_INSTANCE_GET_CLASS() does behave different during initialization --- ChangeLog | 6 ++++++ ChangeLog.pre-2-10 | 6 ++++++ ChangeLog.pre-2-12 | 6 ++++++ docs/reference/gobject/tmpl/gtype.sgml | 8 ++++++-- 4 files changed, 24 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1e9a3428c..e9cc251eb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2005-12-20 Sven Herzberg + + * docs/reference/gobject/tmpl/gtype.sgml: explain that + G_TYPE_INSTANCE_GET_CLASS() does behave different during + initialization + 2006-01-06 Matthias Clasen * glib/gslice.c: Only define _XOPEN_SOURCE if we know diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 1e9a3428c..e9cc251eb 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +2005-12-20 Sven Herzberg + + * docs/reference/gobject/tmpl/gtype.sgml: explain that + G_TYPE_INSTANCE_GET_CLASS() does behave different during + initialization + 2006-01-06 Matthias Clasen * glib/gslice.c: Only define _XOPEN_SOURCE if we know diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 1e9a3428c..e9cc251eb 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +2005-12-20 Sven Herzberg + + * docs/reference/gobject/tmpl/gtype.sgml: explain that + G_TYPE_INSTANCE_GET_CLASS() does behave different during + initialization + 2006-01-06 Matthias Clasen * glib/gslice.c: Only define _XOPEN_SOURCE if we know 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. Returns the class structure of a given @instance, casted -to a specified anchestor type @g_type of the instance. - +to a specified ancestor type @g_type of the instance. +Note +that while calling a GInstanceInitFunc(), the class pointer gets +modified, so it might not always return the expected pointer. + + This macro should only be used in type implementations.