src/JsRender/NodeToGtk.vala
authorAlan Knowles <alan@roojs.com>
Tue, 3 Mar 2015 10:17:05 +0000 (18:17 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 3 Mar 2015 10:17:05 +0000 (18:17 +0800)
src/JsRender/NodeToGtk.vala

index ab1d6a8..bf4349e 100644 (file)
@@ -179,13 +179,23 @@ public class JsRender.NodeToGtk : Object {
                // some are labels - this might need to be more complex...
                // perhaps labels should be a special property labels[] of the notebook..
                var labels = new Gee.ArrayList<NodeToGtk>();
+               var bodies = new Gee.ArrayList<NodeToGtk>();
                for (var i = 0; i < this.children.size; i++) { 
                        var cn = this.children.get(i).node.fqn().replace(".", "");
                        if (cn != "GtkLabel") {
+                               bodies.add(this.children.get(i));
                                continue;
                        }
                        labels.add(this.children.get(i));
                }
+               for (var i = 0; i < bodies.size; i++) { 
+                       ((global::Gtk.Notebook)this.wrapped_object).append_page(
+                               
+                       );
+                       
+                       
+               }
+