fix line numbering issues with vala generator - hopefully fixes completion in node...
[roobuilder] / src / JsRender / JsRender.vala
index 29d8df1..09e4f13 100644 (file)
@@ -79,9 +79,6 @@ namespace JsRender {
                private int _version = 1;   // should we increment this based on the node..?
                public int version {
                        get {
-                               if (this.tree != null) {
-                                       return this.tree.updated_count;
-                               }
                                return ++this._version; // increased on every call? - bit of a kludge until we do real versioning
                        }
                        private set {
@@ -125,25 +122,7 @@ namespace JsRender {
                 
                public signal void compile_notice(string type, string file, int line, string message);
                
-               private  GLib.Icon? _icon = null;
-               
-               public GLib.Icon? icon { 
-                       private set {}
-                       get {
-                               if (this._icon !=  null) {
-                                       return this._icon;
-                               }
-                               
-                               if (this.path == "") {
-                                       return null;
-                               }
-                               if (!GLib.FileUtils.test(this.path, GLib.FileTest.EXISTS)) {
-                                       return null;
-                               }
-                               this._icon = File.new_for_path(this.path).query_info("standard::icon",GLib.FileQueryInfoFlags.NONE).get_icon();
-                               return this._icon;
-                       }
-               }
+
                
                /**
                 * UI componenets
@@ -192,9 +171,10 @@ namespace JsRender {
                        this.doubleStringProps = new Gee.ArrayList<string>();
                        this.childfiles = new GLib.ListStore(typeof(JsRender));
                        this.errorsByType  = new Gee.HashMap<string, GLib.ListStore>();
-                        
-                       
 
+                       if (this.relpath == "src/Lsp.vala") {
+                               GLib.debug("got testing lsp");
+                       }
 
                }
                
@@ -361,14 +341,11 @@ namespace JsRender {
                                 GLib.debug("Width %d, Height %d", widget.get_width(), widget.get_height()); 
                                 p.snapshot(s, widget.get_width(), widget.get_height());
                                 var n = s.free_to_node();
-                                if (n == null) {
-                                       return;
-                               }
                                 var r = new  Gsk.CairoRenderer();
                                 r.realize(null);
                                 var t = r.render_texture(n,null);
                                 GLib.debug("write to %s", filename);
-                                t.save_to_png(filename);
+                               t.save_to_png(filename);
                                 r.unrealize();