NewBranch.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 21 Mar 2019 06:32:20 +0000 (14:32 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 Mar 2019 06:32:20 +0000 (14:32 +0800)
NewBranch.vala

NewBranch.bjs
NewBranch.vala

index 895e259..83ea46f 100644 (file)
            "$ xns" : "Gtk"
           },
           {
+           "listeners" : {
+            "key_release_event" : "() => { \n\n\t_this.createbtn.updateState();\n}"
+           },
            "id" : "commit_message",
            "$ visible" : true,
            "xtype" : "Entry",
index e6408ba..40bf338 100644 (file)
@@ -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