src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 08:13:08 +0000 (16:13 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 19 May 2015 08:13:08 +0000 (16:13 +0800)
src/Palete/ValaSource.vala

index b0b510e..8e4f6cc 100644 (file)
@@ -9,7 +9,8 @@
  * 
  *  x = new ValaSource();
  *  x.connect.compiled(... do something with results... );
- * 
+ *  
+ * x.
  * 
  */
 
@@ -21,13 +22,13 @@ namespace Palete {
        
        //public delegate  void ValaSourceResult(Json.Object res);
        
-       public signal void compiled(Json.Object res);
         
 
        public class ValaSource : Object {
  
                
-               signal 
+               public signal void compiled(Json.Object res);
+
                
                Vala.CodeContext context;
                 
@@ -42,10 +43,7 @@ namespace Palete {
                        
                
                
-                       Project.Gtk project, 
-                       string filepath, 
-                       string build_module, 
-                       string original_filepath) {
+                       ) {
                        base();
                        //this.file = file;
                        this.filepath = filepath;
@@ -69,7 +67,9 @@ namespace Palete {
 
                public void checkFileWithNodePropChange(
                
-               
+                                        
+                                       string build_module, 
+                                       string original_filepath
                
                                        JsRender.JsRender file,
                                        JsRender.Node node, 
@@ -79,6 +79,9 @@ namespace Palete {
                                        ValaSourceResult result_cb)
                {
                        
+                       this.project = file.project;
+                       this.filepath = file.path;
+                       this.build_module = file.build_module;
                        
                        
                        Gee.HashMap<int,string> ret = new Gee.HashMap<int,string> ();