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

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

index 005e72b..718667c 100644 (file)
@@ -92,7 +92,7 @@
            "\t this.mitems.clear();",
            "\t   ",
            "\t foreach(var w in _this.application.windows) {",
-           "\t \tvar wid = _this.applications.windows.index_of(w);",
+           "\t \tvar wid = _this.application.windows.index_of(w);",
            "\t \t// fixme find a better way to display this.",
            "\t \tvar m = new Gtk.MenuItem.with_label(w.windowstate.file.path);",
            "\t \tm.activate.connect(() => {",
index c9288a5..5672b10 100644 (file)
@@ -259,7 +259,7 @@ public class Xcls_MainWindow : Object
                 this.mitems.clear();
                   
                 foreach(var w in _this.application.windows) {
-                       var wid = _this.applications.windows.index_of(w);
+                       var wid = _this.application.windows.index_of(w);
                        // fixme find a better way to display this.
                        var m = new Gtk.MenuItem.with_label(w.windowstate.file.path);
                        m.activate.connect(() => {