From: Alan Knowles Date: Wed, 31 Oct 2018 05:38:43 +0000 (+0800) Subject: NewBranch.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=fdb9c0a88dcdf59110aa8f1d5a3589a1b77fe38a NewBranch.bjs NewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index 01593a5c..3a7c3934 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -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, diff --git a/NewBranch.vala b/NewBranch.vala index 6866b45a..13e34ec9 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -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) => {