src/JsRender/Gtk.vala
authorAlan Knowles <alan@roojs.com>
Mon, 30 May 2016 06:57:59 +0000 (14:57 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 30 May 2016 06:57:59 +0000 (14:57 +0800)
src/JsRender/Gtk.vala

index bad1fac..96635da 100644 (file)
@@ -137,8 +137,15 @@ namespace JsRender {
                }
            public override void setSource(string str) {}
            
-           public override string toSource() // no seed support currently.
+           
+           // this is only used by dumping code...
+           public override string toSource(string format) // no seed support currently.
            {
+                       if (format != "vala") {
+                               return "";
+                       }
+                       return  NodeToVala.mungeFile(this);
+                       
                        
                /*
                if (this.tree == null) {