Uncommited changes synced
authorAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 07:53:49 +0000 (15:53 +0800)
committerAlan Knowles <alan@roojs.com>
Mon, 17 Dec 2018 07:53:49 +0000 (15:53 +0800)
NewBranch.bjs
NewBranch.vala

index a218c91..5bc0316 100644 (file)
          ]
         },
         {
+         "listeners" : {
+          "clicked" : "() => {\n\tTicket.singleton().show(_this.repo);\n\n}"
+         },
          "bool expand" : false,
          "* pack" : "attach_defaults,4,5,1,2",
          "xtype" : "Button",
index 643489b..c25a2db 100644 (file)
@@ -601,6 +601,12 @@ public class NewBranch : Object
             // set gobject values
             this.el.expand = false;
             this.el.label = "New Ticket";
+
+            //listeners
+            this.el.clicked.connect( () => {
+               Ticket.singleton().show(_this.repo);
+            
+            });
         }
 
         // user defined functions