// print("get inter\n");
- var node= file.lineToNode( (int)diag.range.start.line) ;
- if (node == null || node.oid != this.node.oid) {
+ var node = file.lineToNode( (int)diag.range.start.line) ;
+ if (node == null || this.node == null || node.oid != this.node.oid) {
continue;
}
var prop = node.lineToProp( (int)diag.range.start.line) ;
-
+ if (prop == null) {
+ continue;
+ }
var row = _this.selmodel.propToRow(prop);
if (row < 0) {
continue;
}
*/
- GLib.debug("Get Widget At Row %d", (int)row);
+ //GLib.debug("Get Widget At Row %d", (int)row);
var child = this.el.get_first_child();
var line_no = -1;
var reading_header = true;
while (child != null) {
- GLib.debug("Got %s", child.get_type().name());
+ //GLib.debug("Got %s", child.get_type().name());
if (reading_header) {
}
line_no++;
if (line_no == row) {
- GLib.debug("Returning widget %s", child.get_type().name());
+ //GLib.debug("Returning widget %s", child.get_type().name());
return (Gtk.Widget)child;
}
child = child.get_next_sibling();
}
- GLib.debug("Rturning null");
+ //GLib.debug("Rturning null");
return null;
}