src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 10:15:05 +0000 (18:15 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 18 May 2015 10:15:05 +0000 (18:15 +0800)
src/Builder4/MainWindow.vala

src/Builder4/MainWindow.bjs
src/Builder4/MainWindow.vala

index 1516e96..53b38fd 100644 (file)
            },
            "bool always_show_image" : true,
            "id" : "statusbar_errors",
-           "| void setNotices" : "() {\n\n}\n",
+           "| void setNotices" : "(Json.Object nots, int qty) {\n    this.el.show();\n    this.el.label = qty.to_string() + \" Errors\";\n    this.notices = nots;\n\n}\n",
            "Xcls_ValaCompileErrors popup" : "",
            "string label" : "Errors",
            "* pack" : "add",
index 0fac23b..8fcc765 100644 (file)
@@ -2335,7 +2335,10 @@ public class Xcls_MainWindow : Object
         }
 
         // user defined functions 
-        public void setNotices () {
+        public void setNotices (Json.Object nots, int qty) {
+            this.el.show();
+            this.el.label = qty.to_string() + " Errors";
+            this.notices = nots;
         
         }
     }