[glib] docs: cleanup constructor example



commit 409f7db894bcfc6574d86aec34af6851dacc1666
Author: Stefan Kost <ensonic users sf net>
Date:   Sun Sep 19 21:37:19 2010 +0300

    docs: cleanup constructor example
    
    Remove unused var and chain-up the sane way we do elsewhere.

 docs/reference/gobject/tut_gobject.xml |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/docs/reference/gobject/tut_gobject.xml b/docs/reference/gobject/tut_gobject.xml
index 4c5e707..fb0a9d8 100644
--- a/docs/reference/gobject/tut_gobject.xml
+++ b/docs/reference/gobject/tut_gobject.xml
@@ -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-&gt;constructor (gtype, n_properties, properties);
+    obj = G_OBJECT_CLASS (maman_bar_parent_class)-&gt;constructor (gtype, n_properties, properties);
   }
   
   /* update the object state depending on constructor properties */



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]