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