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

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

index 85418ec..ed5d3d9 100644 (file)
            },
            "bool always_show_image" : true,
            "id" : "statusbar_warnings",
-           "| void setNotices" : "() {\n\n}\n",
+           "| void setNotices" : "(Json.Object nots, int qty) {\n    this.el.show();\n    this.el.label = qty.to_string() + \" Warnings\";\n    this.notices = nots;\n\n}\n",
            "Xcls_ValaCompileErrors popup" : "",
            "* pack" : "add",
            "string label" : "Warnings",
index 5eef30c..945e778 100644 (file)
@@ -2418,7 +2418,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() + " Warnings";
+            this.notices = nots;
         
         }
     }