X-Git-Url: http://git.roojs.org/?p=roobuilder;a=blobdiff_plain;f=src%2FBuilder4%2FEditor.bjs;fp=src%2FBuilder4%2FEditor.bjs;h=af1b6bc81a0c9b9d7de24afe95f2913d4816b0b8;hp=484968ab8e68d2e69928ee53421232a5a84e554f;hb=5d1cebf6dde6634da0fc2f17827259a6eeec0799;hpb=8363dcb94685cc71f6e966737d5b0bcddc496314 diff --git a/src/Builder4/Editor.bjs b/src/Builder4/Editor.bjs index 484968ab8..af1b6bc81 100644 --- a/src/Builder4/Editor.bjs +++ b/src/Builder4/Editor.bjs @@ -973,7 +973,7 @@ "\tsym.set_data(\"widget\", expand.get_parent());", "\texpand.get_parent().get_parent().set_data(\"symbol\", sym);", "\t", - "\tGLib.debug(\"save sym on %s\", expand.get_parent().get_parent().get_type().name());", + "\t//GLib.debug(\"save sym on %s\", expand.get_parent().get_parent().get_type().name());", "\t", "\t//GLib.debug(\"got %d children for %s\" , (int)sym.children.get_n_items(), sym.name);", " ", @@ -1278,10 +1278,16 @@ "| void show" : [ "(Gee.ArrayList 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(() => {", "",