X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FWindowLeftTree.bjs;h=bab93d930847887f6856c6d08cb02fb8d543ba54;hb=d6ae4d4a3440210cd33511f8eac5d4dfc67c02cb;hp=fd9795592a4aac6b4a33211028bc1f47839525d3;hpb=831311eb9cb989b5771c1ea776c4080baf93e66a;p=roobuilder diff --git a/src/Builder4/WindowLeftTree.bjs b/src/Builder4/WindowLeftTree.bjs index fd9795592..bab93d930 100644 --- a/src/Builder4/WindowLeftTree.bjs +++ b/src/Builder4/WindowLeftTree.bjs @@ -3,6 +3,7 @@ "gen_extended" : false, "items" : [ { + "# Gee.ArrayList? error_widgets" : "null", "# Xcls_MainWindow? main_window" : "null", "# int last_error_counter" : "-1", "$ xns" : "Gtk", @@ -1609,6 +1610,26 @@ ], "| void removeErrors" : [ "() {", + "\tif (this.error_widgets == null || this.error_widgets.size < 1) {", + " \t\treturn;", + "\t}", + "\tforeach(var child in this.error_widgets) {", + "\t", + "\t\tif (child.has_css_class(\"node-err\")) {", + "\t\t\tchild.remove_css_class(\"node-err\");", + "\t\t}", + "\t\tif (child.has_css_class(\"node-warn\")) {", + "\t\t\tchild.remove_css_class(\"node-warn\");", + "\t\t}", + "\t\t", + "\t\tif (child.has_css_class(\"node-depr\")) {", + "\t\t\tchild.remove_css_class(\"node-depr\");", + "\t\t}", + "\t}", + "\tthis.error_widgets = null;", + "\treturn;", + "\t", + "\t/*", "\tvar child = this.view.el.get_first_child(); ", " ", "\tvar reading_header = true;", @@ -1647,6 +1668,7 @@ " child = child.get_next_sibling(); ", "\t}", "\t//GLib.debug(\"Rturning null\");", + "\t*/", " ", "}" ], @@ -1671,7 +1693,7 @@ "\t\treturn;", "\t}", "\tthis.removeErrors();", - "\t", + "\tthis.error_widgets = new Gee.ArrayList();", "\tforeach(var diag in ar) { ", "\t", "\t\t ", @@ -1688,6 +1710,7 @@ " \tif (w == null) {", " \t\treturn;", "\t\t}", + "\t\tthis.error_widgets.add(w);", "\t\t// always show errors.", "\t\tvar ed = diag.category.down();", "\t\tif (ed != \"err\" && w.has_css_class(\"node-err\")) {",