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