resources/RooUsage.txt
[app.Builder.js] / src / Builder4 / WindowLeftTree.vala
index 67cf81d..983284b 100644 (file)
@@ -18,7 +18,7 @@ public class Xcls_WindowLeftTree : Object
     public Xcls_LeftTreeMenu LeftTreeMenu;
 
         // my vars (def)
-    public signal bool before_node_change (JsRender.Node? node);
+    public signal bool before_node_change ();
     public signal void changed ();
     public signal void node_selected (JsRender.Node? node, string source);
     public Xcls_MainWindow main_window;
@@ -152,10 +152,11 @@ public class Xcls_WindowLeftTree : Object
             this.el.button_press_event.connect( ( ev) => {
                 //console.log("button press?");
                 this.lastEventSource = "tree";
-                if (! _this.before_node_change(null) ) {
+                if (! _this.before_node_change() ) {
                 
                    return true;
                 }
+                
             
                 
                 if (ev.type != Gdk.EventType.BUTTON_PRESS  || ev.button != 3) {
@@ -229,7 +230,7 @@ public class Xcls_WindowLeftTree : Object
                  if (this.blockChanges) { // probably not needed.. 
                    return  ;
                  }
-                  if (!_this.before_node_change(null) ) {
+                  if (!_this.before_node_change( ) ) {
                     this.blockChanges = true;
                     this.el.get_selection().unselect_all();
                     this.blockChanges = false;
@@ -831,8 +832,11 @@ public class Xcls_WindowLeftTree : Object
         }
         public void setCursor (string treepath, string sourceEvent)   {
                this.lastEventSource = sourceEvent;
+               //this.blockChanges = true; << block changes prevents loading of 'node data' and firing of node_selected..
             this.el.set_cursor(new Gtk.TreePath.from_string(treepath), null, false); 
-                   
+            // fire node_selected..
+            //this.blockChanges = false;
+               this.lastEventSource = "";
         }
         public           void selectNode (string treepath_str, string source) {
                this.lastEventSource = source;