* x = new ValaSource();
* x.connect.compiled(... do something with results... );
*
-
- THIS IS NOT USED ?? - replaced with valacompilerequest
*
*/
return false;
}
this.compiler.complete.connect(spawnResult);
- BuilderApplication.showSpinner("spinner", "compiling file");
+ this.spinner(true);
try {
this.compiler.run();
} catch (GLib.Error e) {
GLib.debug("Error %s",e.message);
- BuilderApplication.showSpinner("face-sad", "compile failed %s".printf(e.message));
+ this.spinner(false);
this.compiler = null;
this.deleteTemp();
return false;
}
-
+ public void spinner(bool state)
+ {
+ foreach (var win in BuilderApplication.windows) {
+ if (state) {
+ win.statusbar_compile_spinner.start();
+ } else {
+ win.statusbar_compile_spinner.stop();
+ }
+ }
+ }
public bool checkFileSpawn(JsRender.JsRender file )