*/
int main (string[] args) {
- Gtk.init (ref args);
+
+
+
+
+
- var app = Builder4.Application.singleton();
+ var app = BuilderApplication.singleton( args);
+
+ if (BuilderApplication.opt_debug || BuilderApplication.opt_compile_project == null) {
+ GLib.Log.set_handler(null,
+ GLib.LogLevelFlags.LEVEL_DEBUG | GLib.LogLevelFlags.LEVEL_WARNING,
+ (dom, lvl, msg) => {
+ print("%s: %s\n", dom, msg);
+ });
+ }
+
+ if (BuilderApplication.opt_compile_project != null) {
+
+ Palete.ValaSourceCompiler.buildApplication();
+
+ GLib.Process.exit(Posix.EXIT_SUCCESS);
+ }
+
+
+
+ GLib.debug("project = %s\n", BuilderApplication.opt_compile_project);
+
+ Gtk.init (ref args);
+
+
GtkClutter.init (ref args);
new JsRender.Lang_Class();
GLib.Log.set_always_fatal(LogLevelFlags.LEVEL_ERROR | LogLevelFlags.LEVEL_CRITICAL);
w.el.show_all();
// it looks like showall after children causes segfault on ubuntu 14.4
w.initChildren();
- w.hideViewEditing();
+ w.windowstate.switchState(WindowState.State.FILES);
+
Gtk.main();
-
+ app = null;
return 0;
}