Fix #5829 - Messing around with flutter API
[roobuilder] / src / Main.vala
1 /**
2  * Test the writer code...
3
4
5 */
6  
7 int main (string[] args) {
8         
9         
10         
11         
12         new JsRender.Lang_Class();
13
14         var app =  BuilderApplication.singleton(  args);
15           
16     Gtk.init (ref args);
17         GtkClutter.init (ref args);
18         
19         
20         // not sure why this was done?? - it caused crash bugs on gtk_Box_gadget so removed critical.
21         // GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL); 
22         GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR ); 
23          
24
25         var w = Xcls_MainWindow.singleton();
26         
27         w.el.show_all();
28         // it looks like showall after children causes segfault on ubuntu 14.4
29         w.initChildren();
30         w.windowstate.switchState(WindowState.State.FILES);
31         
32         Gtk.main();
33         
34     app = null;
35         
36         return 0;
37 }