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     
13
14         var app =  BuilderApplication.singleton(  args);
15         
16         print("project = %s\n", BuilderApplication.opt_compile_project);
17         
18         Gtk.init (ref args);
19         
20         
21         GtkClutter.init (ref args);
22         new JsRender.Lang_Class();
23         GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL); 
24         Project.Project.loadAll();
25         /*var proj = Project.Project.getProject("Pman.Core");
26         if (proj == null) {
27                 print("could not load test project Pman.Core");
28                 return 0;
29         }
30         proj.scanDirs();
31         */
32
33         var w = Xcls_MainWindow.singleton();
34         //w.ref();
35         //w.project = proj;
36         
37         w.el.show_all();
38         // it looks like showall after children causes segfault on ubuntu 14.4
39         w.initChildren();
40         w.windowstate.switchState(WindowState.State.FILES);
41         
42         Gtk.main();
43     
44         
45         return 0;
46 }