"| void selectCurrent" : [
"() {",
"\t_this.winloading = true;",
- "\t_this.winsel.el.selected = Gtk.INVALID_LIST_POSITION;",
- " \t\tfor(var i = 0;i < this.el.get_n_items(); i++) {",
- "\t\t\tvar ws = this.el.get_item(i) as WindowState;",
- "\t\t\tif (ws.file.path == _this.windowstate.file.path) {",
- "\t\t\t \tthis.winsel.el.selected = i;",
- "\t\t\t \tbreak;",
- "\t\t \t}",
- "\t\t}",
+ "\tthis.el.selected = Gtk.INVALID_LIST_POSITION;",
+ "\tfor(var i = 0;i < this.el.get_n_items(); i++) {",
+ "\t\tvar ws = this.el.get_item(i) as WindowState;",
+ "\t\tif (ws.file.path == _this.windowstate.file.path) {",
+ "\t\t \tthis.el.selected = i;",
+ "\t\t \tbreak;",
+ "\t \t}",
+ "\t}",
"\t_this.winloading = false;",
"",
"}"
// user defined functions
public void selectCurrent () {
_this.winloading = true;
- _this.winsel.el.selected = Gtk.INVALID_LIST_POSITION;
- for(var i = 0;i < this.el.get_n_items(); i++) {
- var ws = this.el.get_item(i) as WindowState;
- if (ws.file.path == _this.windowstate.file.path) {
- this.winsel.el.selected = i;
- break;
- }
- }
+ this.el.selected = Gtk.INVALID_LIST_POSITION;
+ for(var i = 0;i < this.el.get_n_items(); i++) {
+ var ws = this.el.get_item(i) as WindowState;
+ if (ws.file.path == _this.windowstate.file.path) {
+ this.el.selected = i;
+ break;
+ }
+ }
_this.winloading = false;
}