From: Alan Knowles Date: Wed, 19 Dec 2018 05:45:02 +0000 (+0800) Subject: RepoStatusPopover.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=15fe22ff104c34a6b6b6ec6fcb71f53f522096ce RepoStatusPopover.bjs RepoStatusPopover.vala --- diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index a960381a..95231266 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -57,6 +57,7 @@ }, "label" : "Commit Changes", "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-save\", Gtk.IconSize.SMALL_TOOLBAR), null);", + "id" : "btn_commit", "* pack" : "add", "xtype" : "ToolButton", "$ xns" : "Gtk", diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 26204bee..f9e9452e 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -13,6 +13,7 @@ public class RepoStatusPopover : Object return _RepoStatusPopover; } public Xcls_btn_stash btn_stash; + public Xcls_btn_commit btn_commit; public Xcls_label_status label_status; public Xcls_label_diff label_diff; public Xcls_status_view status_view; @@ -162,7 +163,7 @@ public class RepoStatusPopover : Object var child_0 = new Xcls_btn_stash( _this ); child_0.ref(); this.el.add ( child_0.el ); - var child_1 = new Xcls_ToolButton6( _this ); + var child_1 = new Xcls_btn_commit( _this ); child_1.ref(); this.el.add ( child_1.el ); var child_2 = new Xcls_ToolButton7( _this ); @@ -216,7 +217,7 @@ public class RepoStatusPopover : Object // user defined functions } - public class Xcls_ToolButton6 : Object + public class Xcls_btn_commit : Object { public Gtk.ToolButton el; private RepoStatusPopover _this; @@ -225,9 +226,10 @@ public class RepoStatusPopover : Object // my vars (def) // ctor - public Xcls_ToolButton6(RepoStatusPopover _owner ) + public Xcls_btn_commit(RepoStatusPopover _owner ) { _this = _owner; + _this.btn_commit = this; this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-save", Gtk.IconSize.SMALL_TOOLBAR), null);; // my vars (dec)