X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RepoStatusPopover.vala;fp=RepoStatusPopover.vala;h=d48f61855d1fb9dee40331365f9862ad53252bff;hp=9c2093678174b69d01fa9d6ea7c2ebcd6c8da890;hb=932aa5b472023dec1710d601bc027a4611c6877c;hpb=eca9cfacf54c52df5976316aaca946949129dbbb diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 9c209367..d48f6185 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -200,7 +200,7 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { GitMonitor.gitmonitor.stop(); @@ -212,7 +212,7 @@ public class RepoStatusPopover : Object Clones.singleton().reposStore.load(); _this.el.hide(); - return false; + }); } @@ -241,7 +241,9 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { + _this.el.hide(); + GitMonitor.gitmonitor.stop(); _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" }); _this.repo.push(); _this.repo.loadStatus(); @@ -249,10 +251,10 @@ public class RepoStatusPopover : Object _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff); _this.status_view.el.get_buffer().set_text(_this.repo.git_status); - _this.el.hide(); + Clones.singleton().reposStore.load(); - - return false; + GitMonitor.gitmonitor.start(); + }); } @@ -281,7 +283,7 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { GitMonitor.gitmonitor.stop(); @@ -293,7 +295,7 @@ public class RepoStatusPopover : Object Clones.singleton().reposStore.load(); _this.el.hide(); - return false; + }); } @@ -322,7 +324,7 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { GitMonitor.gitmonitor.stop(); @@ -334,7 +336,7 @@ public class RepoStatusPopover : Object Clones.singleton().reposStore.load(); _this.el.hide(); - return false; + }); } @@ -659,13 +661,13 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { var oldq = new Gee.ArrayList(); Clones.singleton().el.response(-1); NewBranch.singleton().show(_this.repo, oldq); - return false; + }); } @@ -701,7 +703,7 @@ public class RepoStatusPopover : Object if (_this.repo.activeTicket != null) { MergeBranch.singleton().show(_this.repo.activeTicket, null); } - return ; + }); } @@ -729,7 +731,7 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { @@ -737,8 +739,7 @@ public class RepoStatusPopover : Object _this.el.hide(); Ticket.singleton().show( _this.repo); - - return false; + }); }