src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Sun, 17 May 2015 08:34:25 +0000 (16:34 +0800)
committerAlan Knowles <alan@roojs.com>
Sun, 17 May 2015 08:34:25 +0000 (16:34 +0800)
src/Builder4/MainWindow.vala

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

index c6f8753..3152eb6 100644 (file)
          "items" : [
           {
            "listeners" : {
-            "activate" : "",
-            "button_press_event" : "() => {\n    if (this.errpopup == null) {\n        this.errpopup = new Xcls_ValaCompileErrors();\n        this.errpopup.window = _this;\n    }\n    this.errpopup.show(this.notices, this.el);\n}"
+            "button_press_event" : "() => {\n    if (this.popup == null) {\n        this.popup = new Xcls_ValaCompileErrors();\n        this.popup.window = _this;\n    }\n    this.popup.show(this.notices, this.el);\n}"
            },
            "bool always_show_image" : true,
            "id" : "statusbar_errors",
index 14789b1..886e44b 100644 (file)
@@ -2284,13 +2284,12 @@ public class Xcls_MainWindow : Object
             this.el.set_image (  child_0.el  );
 
             // listeners 
-            this.el.activate.connect( );
             this.el.button_press_event.connect( () => {
-                if (this.errpopup == null) {
-                    this.errpopup = new Xcls_ValaCompileErrors();
-                    this.errpopup.window = _this;
+                if (this.popup == null) {
+                    this.popup = new Xcls_ValaCompileErrors();
+                    this.popup.window = _this;
                 }
-                this.errpopup.show(this.notices, this.el);
+                this.popup.show(this.notices, this.el);
             });
         }