"listeners" : {
"bind" : [
"(listitem) => {",
- "\tif (this.in_bind) {",
- "\t\treturn;",
- "\t}",
+ "\t ",
"\t// GLib.debug(\"listitme is is %s\", ((Gtk.ListItem)listitem).get_type().name());",
"\t",
"\t//var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();",
" \texpand.set_list_row(lr);",
" \t//this.in_bind = true;",
" \t// default is to expand",
- " \tswitch (sym.kind) {",
- " \t\tcase Lsp.SymbolKind.Enum: ",
- " \t\t//\texpand.list_row.expanded = false;",
- " \t\t\tbreak;",
- "\t\tdefault:",
- "\t\t//\texpand.list_row.expanded = true;",
- "\t\t\tbreak;",
- "\t}",
+ " ",
" \t//this.in_bind = false;",
" \t",
" \tsym.bind_property(\"symbol_icon\",",
});
this.el.bind.connect( (listitem) => {
- if (this.in_bind) {
- return;
- }
+
// GLib.debug("listitme is is %s", ((Gtk.ListItem)listitem).get_type().name());
//var expand = (Gtk.TreeExpander) ((Gtk.ListItem)listitem).get_child();
expand.set_list_row(lr);
//this.in_bind = true;
// default is to expand
- switch (sym.kind) {
- case Lsp.SymbolKind.Enum:
- // expand.list_row.expanded = false;
- break;
- default:
- // expand.list_row.expanded = true;
- break;
- }
+
//this.in_bind = false;
sym.bind_property("symbol_icon",