X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RepoStatusPopover.vala;h=e5db19f1539887e688b169ca39ed546db7a1954a;hp=9c2093678174b69d01fa9d6ea7c2ebcd6c8da890;hb=refs%2Fheads%2Fwip_alan_T5639_gitlive_general_tidy_ups;hpb=eca9cfacf54c52df5976316aaca946949129dbbb diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 9c209367..e5db19f1 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; + }); } @@ -571,6 +573,11 @@ public class RepoStatusPopover : Object var description = Pango.FontDescription.from_string("monospace"); description.set_size(9000); this.el.override_font(description); + var lm = Gtk.SourceLanguageManager.get_default(); + + ((Gtk.SourceBuffer)(this.el.get_buffer())).set_language( + lm.get_language("diff") + ); } // user defined functions @@ -659,13 +666,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 +708,7 @@ public class RepoStatusPopover : Object if (_this.repo.activeTicket != null) { MergeBranch.singleton().show(_this.repo.activeTicket, null); } - return ; + }); } @@ -729,7 +736,7 @@ public class RepoStatusPopover : Object this.el.is_important = true; //listeners - this.el.button_press_event.connect( () => { + this.el.clicked.connect( () => { @@ -737,8 +744,7 @@ public class RepoStatusPopover : Object _this.el.hide(); Ticket.singleton().show( _this.repo); - - return false; + }); }