X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=tests%2FGtkView.vala;h=df26f49f9688506b076c53571d9e11f51c5b61db;hb=c12245828c0a238de6d57c72dc0066288f68ec90;hp=b4de9aebd024ee8092a97ad12815085d397ecc04;hpb=1b187b87ee5cf703ba28d72bd24c11b4bc601b0b;p=app.Builder.js diff --git a/tests/GtkView.vala b/tests/GtkView.vala index b4de9aebd..df26f49f9 100644 --- a/tests/GtkView.vala +++ b/tests/GtkView.vala @@ -16,7 +16,7 @@ int main (string[] args) { proj.scanDirs(); // - + //loadit("ProjectSettings"); var iter = proj.sortedFiles().list_iterator(); while (iter.next()) { loadit(iter.get().name); } //loadit("WindowLeftProps"); @@ -37,13 +37,26 @@ void loadit(string name ) { var w = new Gtk.Window( Gtk.WindowType.TOPLEVEL ); - w.set_title(tf.name); - w.ref(); + var left_props =new Xcls_GtkView(); left_props.el.show(); w.add(left_props.el); w.show_all(); - left_props.addNode(tf); + left_props.loadFile(tf); + + +/* - left_props.container.el.show_all(); + var g = new JsRender.NodeToGtk(tf.tree); + var obj = g.munge() as Gtk.Widget; + if (obj == null) { + print("skip %s - munge returned null\n", name); + return; + } + var w = new Gtk.Window( Gtk.WindowType.TOPLEVEL ); + w.set_title(tf.name); + w.ref(); + w.add(obj); + w.show_all(); +*/ } \ No newline at end of file