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