fix line numbering issues with vala generator - hopefully fixes completion in node...
[roobuilder] / src / Palete / ValaSource.vala
index 778cc5b..92f9ac6 100644 (file)
@@ -10,8 +10,6 @@
  *  x = new ValaSource();
  *  x.connect.compiled(... do something with results... );
  *  
- THIS IS NOT USED ?? - replaced with valacompilerequest
  * 
  */
 
@@ -170,12 +168,12 @@ namespace Palete {
                                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;
@@ -185,7 +183,16 @@ namespace Palete {
                         
                }
                
-                
+               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 )