src/Builder4/WindowLeftTree.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 7 Jun 2016 08:21:16 +0000 (16:21 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 7 Jun 2016 08:21:16 +0000 (16:21 +0800)
src/Builder4/WindowLeftTree.vala

src/Builder4/WindowLeftTree.bjs
src/Builder4/WindowLeftTree.vala

index 91f20dc..55418db 100644 (file)
@@ -51,7 +51,7 @@
      "# bool drag_in_motion" : "",
      "# bool blockChanges" : false,
      "$ xns" : "Gtk",
-     "| void setCursor" : "(string treepath, string sourceEvent)   {\n\tthis.lastEventSource = sourceEvent;\n\tthis.blockChanges = true;\n    this.el.set_cursor(new Gtk.TreePath.from_string(treepath), null, false); \n    this.blockChanges = false;\n\tthis.lastEventSource = \"\";\n}\n",
+     "| void setCursor" : "(string treepath, string sourceEvent)   {\n\tthis.lastEventSource = sourceEvent;\n\tthis.blockChanges = true;\n    this.el.set_cursor(new Gtk.TreePath.from_string(treepath), null, false); \n    // fire node_selected..\n    this.blockChanges = false;\n\tthis.lastEventSource = \"\";\n}\n",
      "|           void selectNode" : "(string treepath_str, string source) {\n\tthis.lastEventSource = source;\n    //this.selection.select_path(new  Gtk.TreePath.from_string( treepath_str));\n     var tp = new Gtk.TreePath.from_string(treepath_str);\n     \n     this.el.set_cursor(tp, null, false);  \n     this.el.scroll_to_cell(tp, null, false, 0,0);\n}\n",
      "items" : [
       {
index 3a50be0..43d4324 100644 (file)
@@ -834,6 +834,7 @@ public class Xcls_WindowLeftTree : Object
                this.lastEventSource = sourceEvent;
                this.blockChanges = true;
             this.el.set_cursor(new Gtk.TreePath.from_string(treepath), null, false); 
+            // fire node_selected..
             this.blockChanges = false;
                this.lastEventSource = "";
         }