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) {
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;
}
public void setCursor (string treepath, string sourceEvent) {
this.lastEventSource = sourceEvent;
- this.blockChanges = true;
+ //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);
- this.blockChanges = false;
+ // fire node_selected..
+ //this.blockChanges = false;
this.lastEventSource = "";
}
public void selectNode (string treepath_str, string source) {