X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FWindowLeftProps.bjs;h=6e91f28966cd50a017355215f8b15fb1d754c35e;hb=a3bc4d05fe08b2714d5bca8b7539560ab4858f32;hp=736d2df38344d8fe533696bd2dc82b5d795ab25d;hpb=9e01314cb1c0e1cf67f75d3bdc42163e44c2e738;p=roobuilder diff --git a/src/Builder4/WindowLeftProps.bjs b/src/Builder4/WindowLeftProps.bjs index 736d2df38..6e91f2896 100644 --- a/src/Builder4/WindowLeftProps.bjs +++ b/src/Builder4/WindowLeftProps.bjs @@ -1212,11 +1212,11 @@ "\t\t\t\t}", "\t\t\t\t// should be columnlistview", "\t\t\t\tchild = child.get_first_child(); ", - "\t\t\t GLib.debug(\"header height=%d\", h);", + "\t\t\t //GLib.debug(\"header height=%d\", h);", "\t\t\t\theader_height = h;", "\t\t\t\t", "\t\t\t\treading_header = false;", - "\t\t\t\t", + "\t\t\t\tcontinue;", "\t }", "\t ", "\t\t if (child.get_type().name() != \"GtkColumnViewRowWidget\") {", @@ -1230,6 +1230,13 @@ "\t\t ", "\t\t line_no++;", "\t\t\tvar hh = child.get_height();", + "\t\t\tif (child.has_css_class(\"node-err\") || ", + "\t\t\t\tchild.has_css_class(\"node-warn\") || ", + "\t\t\t\tchild.has_css_class(\"node-depr\")) {", + "\t\t\t\thh += 10;", + "\t\t\t", + "\t\t\t}", + "\t\t\t", "\t\t\t//child.get_allocation(out alloc);", "\t\t\t//GLib.debug(\"got cell xy = %d,%d w,h= %d,%d\", alloc.x, alloc.y, alloc.width, alloc.height);", "\t\t\t//GLib.debug(\"row %d y= %d %s\", line_no, (int) (header_height + alloc.y),", @@ -1425,42 +1432,6 @@ "", "}" ], - "| void a_addProp" : [ - " (JsRender.NodeProp prop) {", - " // info includes key, val, skel, etype..", - " //console.dump(info);", - " //type = info.type.toLowerCase();", - " //var data = this.toJS();", - " ", - " ", - " if (prop.ptype == JsRender.NodePropType.LISTENER) {", - " if (this.node.listeners.has_key(prop.name)) {", - " return;", - " }", - " this.node.listeners.set(prop.name,prop);", - " } else {", - " assert(this.node != null);", - " assert(this.node.props != null);", - " if (this.node.props.has_key(prop.to_index_key())) {", - " return;", - " }", - " this.node.props.set(prop.to_index_key(),prop);", - " }", - " ", - " ", - " // add a row???", - " this.load(this.file, this.node);", - " ", - " ", - " ", - " ", - " GLib.debug(\"trying to find new iter\");", - " ", - " ", - " ", - "}", - "" - ], "| void deleteSelected" : [ " () {", " ", @@ -1555,7 +1526,7 @@ "\tvar reading_header = true;", " ", "\twhile (child != null) {", - "\t\tGLib.debug(\"Got %s\", child.get_type().name());", + "\t\t//GLib.debug(\"Got %s\", child.get_type().name());", "\t ", "\t if (reading_header) {", "\t\t\t", @@ -1596,7 +1567,10 @@ "\tvar file = this.file;", "\tvar ar = file.getErrors();", "\tif (ar.size < 1) {", - "\t\tthis.removeErrors();", + "\t\tif (this.last_error_counter != file.error_counter) {", + "\t\t\tthis.removeErrors();", + "\t\t}", + "", "\t\tthis.last_error_counter = file.error_counter ;", "", "\t\treturn;",