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

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

index 197b8b1..bdc3ed1 100644 (file)
           "activate" : [
            "( ) => {",
            "\t // update files",
-           "\t for(var m in  this.mitems) {",
+           "\t foreach(var m in  this.mitems) {",
            "\t \tthis.el.detach(m);",
            "\t }",
            "\t this.mitems.clear();",
-           "\t for(var wid in this.application.windows.keys) {",
+           "\t foreach(var wid in this.application.windows.keys) {",
            "\t \tvar w = this.applications.windows.get(wid);",
            "\t \t// fixme find a better way to display this.",
            "\t \tvar m = new Gtk.MenuItem.with_label(w.windowstate.file.path);",
index 41c6d68..1750d04 100644 (file)
@@ -253,11 +253,11 @@ public class Xcls_MainWindow : Object
             //listeners
             this.el.activate.connect( ( ) => {
                 // update files
-                for(var m in  this.mitems) {
+                foreach(var m in  this.mitems) {
                        this.el.detach(m);
                 }
                 this.mitems.clear();
-                for(var wid in this.application.windows.keys) {
+                foreach(var wid in this.application.windows.keys) {
                        var w = this.applications.windows.get(wid);
                        // fixme find a better way to display this.
                        var m = new Gtk.MenuItem.with_label(w.windowstate.file.path);