"| void show" : [
"(Gee.ArrayList<Lsp.DocumentSymbol> syms) {",
"\t_this.navigationwindow.el.show();",
- "\t_this.navliststore.el.remove_all();",
+ "\t//_this.navliststore.el.remove_all();",
+ "\t",
+ "\t",
+ "\tvar ls = new GLib.ListStore(typeof(Lsp.DocumentSymbol));",
+ "\t",
"\tforeach(var sym in syms) {",
- "\t\t_this.navliststore.el.append(sym);",
+ "\t\tls.append(sym);",
"\t}",
+ "\tLsp.DocumentSymbol.copyList(ls, _this.navliststore.el);",
+ "\t//_this.navliststore.el.append(sym);",
"\tthis.last_selected_line = -1;",
"\tGLib.Idle.add(() => {",
"",
}
public void show (Gee.ArrayList<Lsp.DocumentSymbol> syms) {
_this.navigationwindow.el.show();
- _this.navliststore.el.remove_all();
+ //_this.navliststore.el.remove_all();
+
+
+ var ls = new GLib.ListStore(typeof(Lsp.DocumentSymbol));
+
foreach(var sym in syms) {
- _this.navliststore.el.append(sym);
+ ls.append(sym);
}
+ Lsp.DocumentSymbol.copyList(ls, _this.navliststore.el);
+ //_this.navliststore.el.append(sym);
this.last_selected_line = -1;
GLib.Idle.add(() => {