From bf8f29a508f7f49687e515067353866d70751c85 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Mon, 17 Dec 2018 15:53:49 +0800 Subject: [PATCH 1/1] Uncommited changes synced --- NewBranch.bjs | 3 +++ NewBranch.vala | 6 ++++++ 2 files changed, 9 insertions(+) diff --git a/NewBranch.bjs b/NewBranch.bjs index a218c914..5bc0316a 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -121,6 +121,9 @@ ] }, { + "listeners" : { + "clicked" : "() => {\n\tTicket.singleton().show(_this.repo);\n\n}" + }, "bool expand" : false, "* pack" : "attach_defaults,4,5,1,2", "xtype" : "Button", diff --git a/NewBranch.vala b/NewBranch.vala index 643489b2..c25a2dbe 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -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 -- 2.39.2