X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=src%2FBuilder4%2FWindowLeftProps.vala;h=8cf971b43c2da3808d22bbd17a5f35990b203067;hb=a3bc4d05fe08b2714d5bca8b7539560ab4858f32;hp=9966ec334a0bb80ccf3af35251a9e3eeb4a1724a;hpb=9e01314cb1c0e1cf67f75d3bdc42163e44c2e738;p=roobuilder diff --git a/src/Builder4/WindowLeftProps.vala b/src/Builder4/WindowLeftProps.vala index 9966ec334..8cf971b43 100644 --- a/src/Builder4/WindowLeftProps.vala +++ b/src/Builder4/WindowLeftProps.vala @@ -90,7 +90,10 @@ public class Xcls_LeftProps : Object var file = this.file; var ar = file.getErrors(); if (ar.size < 1) { - this.removeErrors(); + if (this.last_error_counter != file.error_counter) { + this.removeErrors(); + } + this.last_error_counter = file.error_counter ; return; @@ -242,7 +245,7 @@ public class Xcls_LeftProps : Object 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) { @@ -276,39 +279,6 @@ public class Xcls_LeftProps : Object } //GLib.debug("Rturning null"); - } - public 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"); - - - } public void load (JsRender.JsRender file, JsRender.Node? node) { @@ -1857,11 +1827,11 @@ public class Xcls_LeftProps : Object } // should be columnlistview child = child.get_first_child(); - GLib.debug("header height=%d", h); + //GLib.debug("header height=%d", h); header_height = h; reading_header = false; - + continue; } if (child.get_type().name() != "GtkColumnViewRowWidget") { @@ -1875,6 +1845,13 @@ public class Xcls_LeftProps : Object line_no++; var hh = child.get_height(); + if (child.has_css_class("node-err") || + child.has_css_class("node-warn") || + child.has_css_class("node-depr")) { + hh += 10; + + } + //child.get_allocation(out alloc); //GLib.debug("got cell xy = %d,%d w,h= %d,%d", alloc.x, alloc.y, alloc.width, alloc.height); //GLib.debug("row %d y= %d %s", line_no, (int) (header_height + alloc.y),