src/Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 05:58:34 +0000 (13:58 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 May 2015 05:58:34 +0000 (13:58 +0800)
src/Builder4/MainWindow.vala

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

index 39c39b9..4a129e9 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    if (_this.statusbar_errors.popup != null && _this.statusbar_errors.popup.active) {\n        _this.statusbar_errors.popup.active = false;\n        _this.statusbar_errors.popup.el.hide();\n    }\n    if (_this.statusbar_warnings.popup != null && _this.statusbar_warnings.popup.active) {\n        _this.statusbar_warnings.popup.active = false;\n        _this.statusbar_warnings.popup.el.hide();\n    }\n    \n    if (this.popup.active) {\n        this.popup.active = false;\n        this.popup.el.hide();\n        return true;\n    }\n    this.popup.show(this.notices, this.el);\n    return true;\n}"
+            "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}"
            },
            "bool always_show_image" : true,
            "id" : "statusbar_depricated",
index 104b7b6..bbf73d4 100644 (file)
@@ -2524,20 +2524,7 @@ public class Xcls_MainWindow : Object
                     this.popup.window = _this;
                 }
                 
-                if (_this.statusbar_errors.popup != null && _this.statusbar_errors.popup.active) {
-                    _this.statusbar_errors.popup.active = false;
-                    _this.statusbar_errors.popup.el.hide();
-                }
-                if (_this.statusbar_warnings.popup != null && _this.statusbar_warnings.popup.active) {
-                    _this.statusbar_warnings.popup.active = false;
-                    _this.statusbar_warnings.popup.el.hide();
-                }
                 
-                if (this.popup.active) {
-                    this.popup.active = false;
-                    this.popup.el.hide();
-                    return true;
-                }
                 this.popup.show(this.notices, this.el);
                 return true;
             });