Palete/Gir.vala
authorAlan Knowles <alan@roojs.com>
Wed, 4 Jun 2014 10:43:32 +0000 (18:43 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 4 Jun 2014 10:43:32 +0000 (18:43 +0800)
Palete/Gir.vala

index d5f412c..6919d16 100644 (file)
@@ -46,7 +46,7 @@ namespace Palete {
                {
             this.nodetype = nodetype;
             this.name = n;
-             
+            this.parent = "";
             this.type = "";
             this.is_array = false;
             this.is_instance = false;
@@ -78,6 +78,9 @@ namespace Palete {
             r.set_string_member("name", this.name);
             if (this.type.length > 0) {
                 r.set_string_member("type", this.type);
+            }
+                       if (this.parent.length > 0) {
+                r.set_string_member("type", this.type);
             }
             // is_arary / is_instance / is_varargs..