From: Alan Knowles Date: Tue, 7 Jun 2016 07:22:32 +0000 (+0800) Subject: src/Builder4/WindowLeftTree.bjs X-Git-Url: http://git.roojs.org/?p=app.Builder.js;a=commitdiff_plain;h=abbe0c9188a512dc6f3cd94e4a1c02401ccbe335 src/Builder4/WindowLeftTree.bjs src/Builder4/WindowLeftTree.vala --- diff --git a/src/Builder4/WindowLeftTree.bjs b/src/Builder4/WindowLeftTree.bjs index 13a87a5e7..a3c4c70e9 100644 --- a/src/Builder4/WindowLeftTree.bjs +++ b/src/Builder4/WindowLeftTree.bjs @@ -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\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 this.blockChanges = true;\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" : [ { diff --git a/src/Builder4/WindowLeftTree.vala b/src/Builder4/WindowLeftTree.vala index 387d96fd8..4dde6c54e 100644 --- a/src/Builder4/WindowLeftTree.vala +++ b/src/Builder4/WindowLeftTree.vala @@ -833,6 +833,7 @@ public class Xcls_WindowLeftTree : Object this.lastEventSource = sourceEvent; this.blockChanges = true; this.el.set_cursor(new Gtk.TreePath.from_string(treepath), null, false); + this.blockChanges = true; this.lastEventSource = ""; } public void selectNode (string treepath_str, string source) {