From 73f130eab5af1344fb2b0634b5eda1a5bcf84b60 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Mon, 7 Jun 2004 03:22:17 +0000 Subject: [PATCH] Fix the docs for G_DEFINE_TYPE() and friends. (#143800, Crispin Flowerday) Sun Jun 6 23:20:42 2004 Matthias Clasen * gobject/tmpl/gtype.sgml: Fix the docs for G_DEFINE_TYPE() and friends. (#143800, Crispin Flowerday) --- docs/reference/ChangeLog | 5 +++++ docs/reference/gobject/tmpl/gtype.sgml | 25 +------------------------ 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index 74e878b..b45bc57 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,8 @@ +Sun Jun 6 23:20:42 2004 Matthias Clasen + + * gobject/tmpl/gtype.sgml: Fix the docs for G_DEFINE_TYPE() + and friends. (#143800, Crispin Flowerday) + 2004-05-05 Matthias Clasen * gobject/gobject-docs.sgml: diff --git a/docs/reference/gobject/tmpl/gtype.sgml b/docs/reference/gobject/tmpl/gtype.sgml index 79a70a3..2abff95 100644 --- a/docs/reference/gobject/tmpl/gtype.sgml +++ b/docs/reference/gobject/tmpl/gtype.sgml @@ -1464,14 +1464,9 @@ that implements or has internal knowledge of the implementation of A convenience macro for type implementations, which declares a class initialization function, an instance initialization function (see #GTypeInfo for information about -these) and a static variable named parent_class pointing to the parent class. Furthermore, it defines +these) and a static variable named @t_n_parent_class pointing to the parent class. Furthermore, it defines a *_get_type() function. See G_DEFINE_TYPE_EXTENDED() for an example. - -Note that you can't use this macro if you want to define multiple types in one file, -since the parent_class variables will clash. In this case, use -G_DEFINE_TYPE_EXTENDED() and choose different identifiers for @type_parent_class. - @TN: The name of the new type, in Camel case. @t_n: The name of the new type, in lowercase, with words @@ -1487,11 +1482,6 @@ Similar to G_DEFINE_TYPE(), but allows to insert custom code into the *_get_type() function, e.g. interface implementations via G_IMPLEMENT_INTERFACE(). See G_DEFINE_TYPE_EXTENDED() for an example. - -Note that you can't use this macro if you want to define multiple types in one file, -since the parent_class variables will clash. In this case, use -G_DEFINE_TYPE_EXTENDED() and choose different identifiers for @type_parent_class. - @TN: The name of the new type, in Camel case. @t_n: The name of the new type in lowercase, with words separated by '_'. @@ -1506,11 +1496,6 @@ A convenience macro for type implementations. Similar to G_DEFINE_TYPE(), but defines an abstract type. See G_DEFINE_TYPE_EXTENDED() for an example. - -Note that you can't use this macro if you want to define multiple types in one file, -since the parent_class variables will clash. In this case, use -G_DEFINE_TYPE_EXTENDED() and choose different identifiers for @type_parent_class. - @TN: The name of the new type, in Camel case. @t_n: The name of the new type, in lowercase, with words @@ -1526,11 +1511,6 @@ Similar to G_DEFINE_TYPE_WITH_CODE(), but defines an abstract type and allows to insert custom code into the *_get_type() function, e.g. interface implementations via G_IMPLEMENT_INTERFACE(). See G_DEFINE_TYPE_EXTENDED() for an example. - -Note that you can't use this macro if you want to define multiple types in one file, -since the parent_class variables will clash. In this case, use -G_DEFINE_TYPE_EXTENDED() and choose different identifiers for @type_parent_class. - @TN: The name of the new type, in Camel case. @t_n: The name of the new type, in lowercase, with words @@ -1566,7 +1546,6 @@ G_DEFINE_TYPE_EXTENDED (GtkGadget, gtk_gadget, GTK_TYPE_WIDGET, 0, - gtk_gadget_parent_class, G_IMPLEMENT_INTERFACE (TYPE_GIZMO, gtk_gadget_gizmo_init)); @@ -1621,8 +1600,6 @@ init functions. @flags: #GTypeFlags to pass to g_type_register_static() @CODE: Custom code that gets inserted in the *_get_type() function. @Since: 2.4 - -@type_parent_class: the identifier for the static variable holding the parent class -- 2.7.4