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

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

index 3152eb6..1ca9079 100644 (file)
           },
           {
            "listeners" : {
-            "activate" : "() => {\n    _this.windowstate.vala_compile_errors.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_warnings",
index 886e44b..4c11a80 100644 (file)
@@ -2344,8 +2344,12 @@ public class Xcls_MainWindow : Object
             this.el.set_image (  child_0.el  );
 
             // listeners 
-            this.el.activate.connect( () => {
-                _this.windowstate.vala_compile_errors.show(this.notices, this.el);
+            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);
             });
         }