From 66045d5d8291b4e8279e44f3d0ff0503cb3ea3fc Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Thu, 21 Mar 2019 14:32:20 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 3 +++ NewBranch.vala | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/NewBranch.bjs b/NewBranch.bjs index 895e259b..83ea46f5 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -539,6 +539,9 @@ "$ xns" : "Gtk" }, { + "listeners" : { + "key_release_event" : "() => { \n\n\t_this.createbtn.updateState();\n}" + }, "id" : "commit_message", "$ visible" : true, "xtype" : "Entry", diff --git a/NewBranch.vala b/NewBranch.vala index e6408ba9..40bf3381 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -2376,6 +2376,12 @@ public class NewBranch : Object // set gobject values this.el.visible = true; + + //listeners + this.el.key_release_event.connect( () => { + + _this.createbtn.updateState(); + }); } // user defined functions -- 2.39.2