NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 31 Oct 2018 05:38:43 +0000 (13:38 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 31 Oct 2018 05:38:43 +0000 (13:38 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 01593a5..3a7c393 100644 (file)
@@ -10,7 +10,7 @@
   {
    "listeners" : {
     "delete_event" : "(self, event) => {\n    this.el.hide();\n    return true; \n    //test  \n}\n ",
-    "response" : " (self, response_id) =>  { \n  \n\t GLib.debug(\"got %d\", (int) response_id);\n}",
+    "response" : " (self, response_id) =>  { \n  \n\t GLib.debug(\"got %d\", (int) response_id);\n\t _this.el.hide();\n\t \n}",
     "show" : "(self)  => {\n \n\n  //test\n}"
    },
    "default_width" : 500,
index 6866b45..13e34ec 100644 (file)
@@ -52,6 +52,8 @@ public class NewBranch : Object
         this.el.response.connect( (self, response_id) =>  { 
           
                 GLib.debug("got %d", (int) response_id);
+                _this.el.hide();
+                
         });
         this.el.show.connect( (self)  => {