src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 07:35:13 +0000 (15:35 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 07:35:13 +0000 (15:35 +0800)
src/Builder4/MainWindow.vala

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

index 7055d57..fd918b4 100644 (file)
           },
           {
            "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\t\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 eaa92e1..ce8b36b 100644 (file)
@@ -2576,7 +2576,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 )
@@ -2586,7 +2585,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;
@@ -2597,24 +2595,12 @@ 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;
-                }
-               
-                
-                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_Image78 : Object
     {