src/Builder4/Editor.bjs
authorAlan Knowles <alan@roojs.com>
Sat, 23 Mar 2024 07:43:17 +0000 (15:43 +0800)
committerAlan Knowles <alan@roojs.com>
Sat, 23 Mar 2024 07:43:17 +0000 (15:43 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 1ac592d..04c7d9c 100644 (file)
                "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\",",
index f51d5a6..0bbf570 100644 (file)
@@ -2083,9 +2083,7 @@ public class Editor : Object
                                
                        });
                        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();
@@ -2112,14 +2110,7 @@ public class Editor : Object
                                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",