Attribute changed old-javascript
[app.Builder.js] / old-javascript / Builder4 / Main.vala
diff --git a/old-javascript/Builder4/Main.vala b/old-javascript/Builder4/Main.vala
new file mode 100644 (file)
index 0000000..5ba0d7b
--- /dev/null
@@ -0,0 +1,35 @@
+/**
+ * Test the writer code...
+
+
+*/
+int main (string[] args) {
+    Gtk.init (ref args);
+
+       var app =  Builder4.Application.singleton();
+       GtkClutter.init (ref args);
+       new JsRender.Lang_Class();
+       GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL); 
+       Project.Project.loadAll();
+       /*var proj = Project.Project.getProject("Pman.Core");
+       if (proj == null) {
+               print("could not load test project Pman.Core");
+               return 0;
+       }
+       proj.scanDirs();
+       */
+
+       var w = Xcls_MainWindow.singleton();
+       //w.ref();
+       //w.project = proj;
+       
+       w.el.show_all();
+       // it looks like showall after children causes segfault on ubuntu 14.4
+       w.initChildren();
+       w.hideViewEditing();
+       Gtk.main();
+    
+       
+       return 0;
+}