"\t \tthis.el.detach(m);",
"\t }",
"\t this.mitems.clear();",
- "\t foreach(var wid in this.application.windows) {",
- "\t \tvar w = this.applications.windows.get(wid);",
+ "\t var ",
+ "\t foreach(var w in this.application.windows) {",
+ "\t \tvar wid = this.applications.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(() => {",
this.el.detach(m);
}
this.mitems.clear();
- foreach(var wid in this.application.windows) {
- var w = this.applications.windows.get(wid);
+ var
+ foreach(var w in this.application.windows) {
+ var wid = this.applications.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(() => {