"\t \tthis.el.detach(m);",
"\t }",
"\t this.mitems.clear();",
- "\t for(var w in this.application.windows) {",
- "\t \tvar m = new Gtk.MenuItem.with_label(window.file.toString());",
- "\t ",
- "\t ",
+ "\t for(var wid in this.application.windows.keys) {",
+ "\t \tvar w = this.applications.windows.get(wid);",
+ "\t \tvar m = new Gtk.MenuItem.with_label(w.windowstate.file.toString());",
+ "\t \tm.activate.connect(() => {",
+ "\t \t\tthis.application.bringToFront(this.application.windows.get(wid));",
+ "\t \t});",
"\t }",
"\t ",
"}",
this.el.detach(m);
}
this.mitems.clear();
- for(var w in this.application.windows) {
- var m = new Gtk.MenuItem.with_label(window.file.toString());
-
-
+ for(var wid in this.application.windows.keys) {
+ var w = this.applications.windows.get(wid);
+ var m = new Gtk.MenuItem.with_label(w.windowstate.file.toString());
+ m.activate.connect(() => {
+ this.application.bringToFront(this.application.windows.get(wid));
+ });
}
});