src/Builder4/WindowState.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 08:40:09 +0000 (16:40 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 08:40:09 +0000 (16:40 +0800)
src/Builder4/WindowState.vala

index 0985ab1..b95fd5f 100644 (file)
@@ -880,15 +880,35 @@ public class WindowState : Object
                                break;
                }
                
-               public void valaCompiled(Json.Object results)
+               
+
+       }
+       public void valaCompiled(Json.Object obj)
                {
                        // vala has finished compiling...
-                       
-                       
-               }
+                       print("vala compiled");
+                                     
+                       if (obj.has_member("ERR-TOTAL")) {
 
-       }
+                                _this.window.statusbar_errors.setNotices( obj.get_object_member("ERR") , (int) obj.get_int_member("ERR-TOTAL"));
+                       } else {
+                                _this.window.statusbar_errors.setNotices( new Json.Object() , 0);
+                       }    
+                       
+                       if (obj.has_member("WARN-TOTAL")) {
 
+                                _this.window.statusbar_warnings.setNotices(obj.get_object_member("WARN"), (int) obj.get_int_member("WARN-TOTAL"));
+                       } else {
+                                        _this.window.statusbar_warnings.setNotices( new Json.Object() , 0);
+                       }
+                       if (obj.has_member("DEPR-TOTAL")) {
+                               
+                                _this.window.statusbar_depricated.setNotices( obj.get_object_member("DEPR"),  (int) obj.get_int_member("DEPR-TOTAL"));
+                
+                       } else {
+                               _this.window.statusbar_depricated.setNotices( new Json.Object(),0);
+                       }
+               }
        
 }