docs: cleanup constructor example

Remove unused var and chain-up the sane way we do elsewhere.
This commit is contained in:
Stefan Kost 2010-09-19 21:37:19 +03:00
parent a6ad0fbec2
commit 409f7db894

View File

@ -97,10 +97,7 @@ maman_bar_constructor (GType gtype,
{
/* Always chain up to the parent constructor */
MamanBarClass *klass;
GObjectClass *parent_class;
parent_class = G_OBJECT_CLASS (maman_bar_parent_class);
obj = parent_class->constructor (gtype, n_properties, properties);
obj = G_OBJECT_CLASS (maman_bar_parent_class)->constructor (gtype, n_properties, properties);
}
/* update the object state depending on constructor properties */