sync
[app.Builder.js] / src / Builder4 / WindowLeftTree.vala
index 4dad317..9e501e3 100644 (file)
@@ -226,7 +226,7 @@ public class Xcls_WindowLeftTree : Object
                         _this.model.activePath = mod.get_path(iter).to_string();
                         
                         var node = (JsRender.Node)value.dup_object();
-                        _this.node_selected(node, this.lastSourceEvent);
+                        _this.node_selected(node, this.lastEventSource);
                         while (Gtk.events_pending()) {
                             Gtk.main_iteration();
                        }
@@ -828,6 +828,11 @@ public class Xcls_WindowLeftTree : Object
                     this.el.set_drag_dest_row(null, Gtk.TreeViewDropPosition.INTO_OR_AFTER);
                  }
                      
+        }
+        public void setCursor (string treepath, string sourceEvent)   {
+               this.lastEventSource = sourceEvent;
+            this.el.set_cursor(new Gtk.TreePath.from_string(treepath), null, false); 
+                   
         }
         public           void selectNode (string treepath_str, string source) {
                this.lastEventSource = source;