src/Builder4/Editor.bjs
authorAlan <alan@roojs.com>
Thu, 18 Aug 2022 10:02:43 +0000 (18:02 +0800)
committerAlan <alan@roojs.com>
Thu, 18 Aug 2022 10:02:43 +0000 (18:02 +0800)
src/Builder4/Editor.vala

src/Builder4/Editor.bjs
src/Builder4/Editor.vala

index 33c0a46..d952a86 100644 (file)
         "button_press_event" : [
          "(event) => {",
          "",
-         "\treturn bool;",
+         "\t_this.searchBack();",
+         "\t",
+         "\treturn true;",
          "}",
          ""
         ]
          "xtype" : "Image"
         }
        ],
+       "listeners" : {
+        "button_press_event" : [
+         "(event) => {",
+         "",
+         "\t_this.searchForward();",
+         "\t",
+         "\treturn true;",
+         "}",
+         ""
+        ]
+       },
        "string label" : "Next",
        "xtype" : "Button"
       },
index a4a1d02..d86c051 100644 (file)
@@ -1126,7 +1126,9 @@ public class Editor : Object
             //listeners
             this.el.button_press_event.connect( (event) => {
             
-               return bool;
+               _this.searchBack();
+               
+               return true;
             });
         }
 
@@ -1178,6 +1180,14 @@ public class Editor : Object
             var child_0 = new Xcls_Image20( _this );
             child_0.ref();
             this.el.image = child_0.el;
+
+            //listeners
+            this.el.button_press_event.connect( (event) => {
+            
+               _this.searchForward();
+               
+               return true;
+            });
         }
 
         // user defined functions