X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RepoStatusPopover.vala;h=b53c2e2927ab17826175e27f969e9c9416236f9c;hp=691c389092bcaff498119bab169be8d173213404;hb=2150364c20b0794d957f773bc7c0db9a0e5ebdd3;hpb=e0515663bf267f530bf8c59e00550c7c3662ecf8 diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 691c3890..b53c2e29 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -369,6 +369,9 @@ public class RepoStatusPopover : Object var child_5 = new Xcls_Button18( _this ); child_5.ref(); this.el.add ( child_5.el ); + var child_6 = new Xcls_Button19( _this ); + child_6.ref(); + this.el.add ( child_6.el ); } // user defined functions @@ -577,6 +580,44 @@ public class RepoStatusPopover : Object // my vars (dec) + // set gobject values + this.el.label = "Commit Changes"; + + //listeners + this.el.button_press_event.connect( () => { + _this.repo.git({ "commit" , "-a" ,"-m", "Uncommited changes synced" }); + _this.repo.push(); + _this.repo.loadStatus(); + + _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; + }); + } + + // user defined functions + } + + public class Xcls_Button19 : Object + { + public Gtk.Button el; + private RepoStatusPopover _this; + + + // my vars (def) + + // ctor + public Xcls_Button19(RepoStatusPopover _owner ) + { + _this = _owner; + this.el = new Gtk.Button(); + + // my vars (dec) + // set gobject values this.el.label = "Create Ticket";