Builder4/MainWindow.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 09:17:20 +0000 (17:17 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 23 Sep 2014 09:17:20 +0000 (17:17 +0800)
Builder4/MainWindow.vala

Builder4/MainWindow.bjs
Builder4/MainWindow.vala

index 223ff42..d6900e6 100644 (file)
                                                                     "items" : [
                                                                         {
                                                                             "listeners" : {
-                                                                                "clicked" : "( ) => {\n  \n    var w = new Xcls_MainWindow();\n    w.ref();\n    w.is_top_window = false;\n    w.el.show_all();\n    w.initChildren();\n    w.hideViewEditing();\n\n\n}"
+                                                                                "clicked" : "( ) => {\n    Xcls_MainWindow.singleton().no_windows++;\n    var w = new Xcls_MainWindow();\n    w.ref();\n    w.is_top_window = false;\n    w.el.show_all();\n    w.initChildren();\n    w.hideViewEditing();\n\n\n}"
                                                                             },
                                                                             "* pack" : false,
                                                                             "xtype" : "Button",
index 4fd4672..5b87dc3 100644 (file)
@@ -1641,7 +1641,7 @@ public class Xcls_MainWindow : Object
 
             // listeners 
             this.el.clicked.connect( ( ) => {
-              
+                Xcls_MainWindow.singleton().no_windows++;
                 var w = new Xcls_MainWindow();
                 w.ref();
                 w.is_top_window = false;