src/Builder4/MainWindow.bjs
authorAlan <alan@roojs.com>
Thu, 7 Jul 2022 07:45:21 +0000 (15:45 +0800)
committerAlan <alan@roojs.com>
Thu, 7 Jul 2022 07:45:21 +0000 (15:45 +0800)
src/Builder4/MainWindow.vala

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

index 185bb3c..a942cf1 100644 (file)
@@ -91,7 +91,7 @@
            "\t }",
            "\t this.mitems.clear();",
            "\t   ",
-           "\t foreach(var w in _this.application.windows) {",
+           "\t foreach(var w in BuilderApplication.windows) {",
            "\t \tvar wid = _this.application.windows.index_of(w);",
            "\t \t// fixme find a better way to display this.",
            "\t \tif (w.windowstate.file.path == _this.windowstate.file.path) {",
@@ -99,7 +99,7 @@
            " \t\t}",
            "\t \tvar m = new Gtk.MenuItem.with_label(w.windowstate.file.path);",
            "\t \tm.activate.connect(() => {",
-           "\t \t\t _this.application.windows.get(wid).el.present();",
+           "\t \t\t BuilderApplication.windows.get(wid).el.present();",
            "\t \t});",
            "\t \tthis.el.popup.append(m);",
            "\t }",
index 61799a5..cde186c 100644 (file)
@@ -258,7 +258,7 @@ public class Xcls_MainWindow : Object
                 }
                 this.mitems.clear();
                   
-                foreach(var w in _this.application.windows) {
+                foreach(var w in BuilderApplication.windows) {
                        var wid = _this.application.windows.index_of(w);
                        // fixme find a better way to display this.
                        if (w.windowstate.file.path == _this.windowstate.file.path) {
@@ -266,7 +266,7 @@ public class Xcls_MainWindow : Object
                        }
                        var m = new Gtk.MenuItem.with_label(w.windowstate.file.path);
                        m.activate.connect(() => {
-                                _this.application.windows.get(wid).el.present();
+                                BuilderApplication.windows.get(wid).el.present();
                        });
                        this.el.popup.append(m);
                 }