From 5d7c45517e9c5ccb7409792966a48422c2dc9feb Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 13:37:14 +0800 Subject: [PATCH] RepoStatusPopover.bjs RepoStatusPopover.vala --- RepoStatusPopover.bjs | 2 +- RepoStatusPopover.vala | 10 +++++++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index 2cda159c..a6d3547b 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -185,7 +185,7 @@ { "listeners" : { "button_press_event" : "() => {\n\n _this.el.hide();\n Clones.singleton().el.response(-1);\n if (_this.repo.activeTicket != null) {\n\t MergeBranch.singleton().show(_this.repo.activeTicket, null); \n }\n return false;\n}", - "clicked" : "" + "clicked" : "() => {\n\n _this.el.hide();\n Clones.singleton().el.response(-1);\n if (_this.repo.activeTicket != null) {\n\t MergeBranch.singleton().show(_this.repo.activeTicket, null); \n }\n return false;\n}" }, "label" : "Merge branch/ ticket", "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-goto-top\", Gtk.IconSize.SMALL_TOOLBAR), null);", diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index c521515d..c101ae68 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -679,7 +679,15 @@ public class RepoStatusPopover : Object } return false; }); - this.el.clicked.connect( ); + this.el.clicked.connect( () => { + + _this.el.hide(); + Clones.singleton().el.response(-1); + if (_this.repo.activeTicket != null) { + MergeBranch.singleton().show(_this.repo.activeTicket, null); + } + return false; + }); } // user defined functions -- 2.39.2