src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:47:57 +0000 (19:47 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 2 Jun 2015 11:47:57 +0000 (19:47 +0800)
src/Builder4/MainWindow.vala

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

index bad7d34..cdfbcaa 100644 (file)
          "items" : [
           {
            "listeners" : {
-            "button_press_event" : "() => {\n    if (this.popup == null) {\n        this.popup = new Xcls_ValaCompileErrors();\n        this.popup.window = _this;\n    }\n   \n    \n    this.popup.show(this.notices, this.el);\n    return true;\n}"
+            "button_press_event" : "() => {\n/*\n    if (this.popup == null) {\n        this.popup = new Xcls_ValaCompileErrors();\n        this.popup.window = _this;\n    }\n   \n    \n    this.popup.show(this.notices, this.el);\n    */\n    return true;\n}"
            },
            "bool always_show_image" : true,
            "id" : "statusbar_errors",
-           "| 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",
            "xtype" : "ImageMenuItem",
-           "# Json.Object notices" : "new Json.Object() ",
            "$ xns" : "Gtk",
            "items" : [
             {
index 71bd60d..69d0c58 100644 (file)
@@ -2368,7 +2368,6 @@ public class Xcls_MainWindow : Object
 
             // my vars (def)
         public Xcls_ValaCompileErrors popup;
-        public Json.Object notices;
 
         // ctor
         public Xcls_statusbar_errors(Xcls_MainWindow _owner )
@@ -2378,7 +2377,6 @@ public class Xcls_MainWindow : Object
             this.el = new Gtk.ImageMenuItem();
 
             // my vars (dec)
-            this.notices = new Json.Object() ;
 
             // set gobject values
             this.el.always_show_image = true;
@@ -2389,6 +2387,7 @@ public class Xcls_MainWindow : Object
 
             //listeners
             this.el.button_press_event.connect( () => {
+            /*
                 if (this.popup == null) {
                     this.popup = new Xcls_ValaCompileErrors();
                     this.popup.window = _this;
@@ -2396,17 +2395,12 @@ public class Xcls_MainWindow : Object
                
                 
                 this.popup.show(this.notices, this.el);
+                */
                 return true;
             });
         }
 
         // user defined functions
-        public void setNotices (Json.Object nots, int qty) {
-            this.el.show();
-            this.el.label = qty.to_string() + " Errors";
-            this.notices = nots;
-        
-        }
     }
     public class Xcls_Image72 : Object
     {