OBJECT,
PROP,
LISTENER,
- CODE,
+ CODE, // code editor.
CODEONLY,
FILES,
PROJECT, // project settings..
this.valasource = new Palete.ValaSource();
- this.valasource.compiled.connect(this.valaCompiled);
+ this.valasource.compiled.connect(this.showCompileResult);
this.compile_results = new Xcls_ValaCompileResults();
this.compile_results.window = this.win;
} else {
this.win.statusbar_depricated.setNotices( new Json.Object(),0);
}
-
- buf.highlightErrorsJson("ERR", obj);
- buf.highlightErrorsJson("WARN", obj);
- buf.highlightErrorsJson("DEPR", obj);
+ if (this.state = State.CODE:) {
+ buf.highlightErrorsJson("ERR", obj);
+ buf.highlightErrorsJson("WARN", obj);
+ buf.highlightErrorsJson("DEPR", obj);
+ }
this.win.statusbar_compilestatus_label.el.hide();
this.win.statusbar_run.el.hide();
gbuf.highlightErrorsJson("DEPR", obj);
}
+
+ if (this.file.xtype == "Gtk") {
+ // not sure how this is working ok? - as highlighting is happening on the vala files at present..
+ var gbuf = this.window_rooview.sourceview;
+ gbuf.highlightErrorsJson("ERR", obj);
+ gbuf.highlightErrorsJson("WARN", obj);
+ gbuf.highlightErrorsJson("DEPR", obj);
+
+ }
+
this.last_compile_result = obj;