// my vars (def)
public bool loading;
public bool allow_node_scroll;
- public string propSelected;
+ public string prop_selected;
+ public JsRender.Node? node_selected;
// ctor
public Xcls_sourceview(Xcls_WindowRooView _owner )
// my vars (dec)
this.loading = true;
this.allow_node_scroll = true;
- this.propSelected = "";
+ this.prop_selected = "";
+ this.node_selected = null;
// set gobject values
this.el.editable = false;
// let's try allowing editing on the methods.
// a little klunky at present..
- this.propSelected = "";
+ this.prop_selected = "";
if (prop != null) {
//see if we can find it..
var kv = prop.split(":");
public void nodeSelected (JsRender.Node? sel, bool scroll ) {
-
+
// this is connected in widnowstate
- print("node selected\n");
- var buf = this.el.get_buffer();
-
- var sbuf = (Gtk.SourceBuffer) buf;
-
+
+ // not sure why....
while(Gtk.events_pending()) {
Gtk.main_iteration();
}
+ this.nodeSelected = sel;
+
+ print("node selected\n");
+ var buf = this.el.get_buffer();
+ var sbuf = (Gtk.SourceBuffer) buf;
+
// clear all the marks..
Gtk.TextIter start;