diff --git a/gobject/gtype.h b/gobject/gtype.h index a10316a58..cc268d3ce 100644 --- a/gobject/gtype.h +++ b/gobject/gtype.h @@ -1353,6 +1353,9 @@ guint g_type_get_type_registration_serial (void); * instance data to the type. Furthermore, it defines a *_get_type() function. See G_DEFINE_TYPE_EXTENDED() * for an example. * + * Note that private structs added with this macros must have a struct + * name of the form @TNPrivate. + * * Since: 2.38 */ #define G_DEFINE_TYPE_WITH_PRIVATE(TN, t_n, T_P) G_DEFINE_TYPE_EXTENDED (TN, t_n, T_P, 0, G_ADD_PRIVATE (TN)) @@ -1575,6 +1578,9 @@ guint g_type_get_type_registration_serial (void); * Note that this macro can only be used together with the G_DEFINE_TYPE_* * macros, since it depends on variable names from those macros. * + * Also note that private structs added with these macros must have a struct + * name of the form TypeNamePrivate. + * * Since: 2.38 */ #define G_ADD_PRIVATE(TypeName) { \