fix signal generation for vala
authorAlan <alan@roojs.com>
Thu, 9 Jun 2022 08:21:43 +0000 (16:21 +0800)
committerAlan <alan@roojs.com>
Thu, 9 Jun 2022 08:21:43 +0000 (16:21 +0800)
src/Builder4/Editor.bjs
src/Builder4/Editor.vala
src/JsRender/NodeToVala.vala

index c485ade..ecf5411 100644 (file)
    ],
    "| void forwardSearch" : [
     "(bool change_focus) {",
-    " ",
+    "",
     "\tif (this.searchcontext == null) {",
     "\t\treturn;",
     "\t}",
index 2db0296..6e09c4e 100644 (file)
@@ -151,7 +151,7 @@ public class Editor : Object
     
     }
     public void forwardSearch (bool change_focus) {
-     
+    
        if (this.searchcontext == null) {
                return;
        }
index 76108dc..13e87b1 100644 (file)
@@ -334,7 +334,7 @@ public class JsRender.NodeToVala : Object {
                                
                        if (prop.ptype == NodePropType.SIGNAL) {
                                this.node.setLine(this.cur_line, "p", prop.name);
-                               this.addLine(this.pad + "public signal " + prop.name  + " "  + prop.val + ";");
+                               this.addLine(this.pad + "public signal " + prop.rtype + " " + prop.name  + " "  + prop.val + ";");
                                
                                this.ignore(prop.name);
                                continue;