src/Main.vala
[app.Builder.js] / src / Main.vala
1 /**
2  * Test the writer code...
3
4
5 */
6  
7 int main (string[] args) {
8         
9         
10         
11         
12     Gtk.init (ref args);
13
14         var app =  BuilderApplication.singleton(ref args);
15         GtkClutter.init (ref args);
16         new JsRender.Lang_Class();
17         GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL); 
18         Project.Project.loadAll();
19         /*var proj = Project.Project.getProject("Pman.Core");
20         if (proj == null) {
21                 print("could not load test project Pman.Core");
22                 return 0;
23         }
24         proj.scanDirs();
25         */
26
27         var w = Xcls_MainWindow.singleton();
28         //w.ref();
29         //w.project = proj;
30         
31         w.el.show_all();
32         // it looks like showall after children causes segfault on ubuntu 14.4
33         w.initChildren();
34         w.windowstate.switchState(WindowState.State.FILES);
35         
36         Gtk.main();
37     
38         
39         return 0;
40 }