Error in documentation?

Sarah Hyder <[email protected]> Tue, 3 Jul 2012 12:02:33 +0500
Newsgroups gmane.comp.gnome.web
Message-ID <CAEJchZ5Dy+g1cNw2TL8gH+h+QCmMqubuK9qRprdyuGtP6Zsozg@mail.gmail.com>
Hello,

I'd like to report an error in the GObject Reference Manual. I don't know
if this is correct as I am a newbie but I think the sample code does not
show what the description is specifying. Please tell me if I'm wrong
because this is confusing me.
Thank you.


In the section  *Instantiable classed types: objects *on line

Every object must define two structures: its class structure and its
instance structure. All class structures must contain as first member a
GTypeClass <http://gobject-Type-Information.html#GTypeClass> structure. All
instance structures must contain as first member a
GTypeInstance<http://gobject-Type-Information.html#GTypeInstance>
 structure. The declaration of these C types, coming from gtype.h is shown
below:

struct _GTypeClass
{
  GType g_type;
};
struct _GTypeInstance
{
  GTypeClass *g_class;
};

_______________________________________________
gnome-web-list mailing list
[email protected]
https://mail.gnome.org/mailman/listinfo/gnome-web-list