From 1cb2e51f700081c066c4db39ada26fcb48e976dd Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 13:44:54 +0800 Subject: [PATCH] RepoStatusPopover.bjs RepoStatusPopover.vala --- RepoStatusPopover.bjs | 1 + RepoStatusPopover.vala | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index 04e8a302..a960381a 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -45,6 +45,7 @@ }, "label" : "Stash Changes", "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-undo\", Gtk.IconSize.SMALL_TOOLBAR), null);", + "id" : "btn_stash", "xtype" : "ToolButton", "* pack" : "add", "$ xns" : "Gtk", diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index 22966a6a..26204bee 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -12,6 +12,7 @@ public class RepoStatusPopover : Object } return _RepoStatusPopover; } + public Xcls_btn_stash btn_stash; public Xcls_label_status label_status; public Xcls_label_diff label_diff; public Xcls_status_view status_view; @@ -158,7 +159,7 @@ public class RepoStatusPopover : Object // set gobject values this.el.toolbar_style = Gtk.ToolbarStyle.BOTH_HORIZ; - var child_0 = new Xcls_ToolButton5( _this ); + var child_0 = new Xcls_btn_stash( _this ); child_0.ref(); this.el.add ( child_0.el ); var child_1 = new Xcls_ToolButton6( _this ); @@ -174,7 +175,7 @@ public class RepoStatusPopover : Object // user defined functions } - public class Xcls_ToolButton5 : Object + public class Xcls_btn_stash : Object { public Gtk.ToolButton el; private RepoStatusPopover _this; @@ -183,9 +184,10 @@ public class RepoStatusPopover : Object // my vars (def) // ctor - public Xcls_ToolButton5(RepoStatusPopover _owner ) + public Xcls_btn_stash(RepoStatusPopover _owner ) { _this = _owner; + _this.btn_stash = this; this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-undo", Gtk.IconSize.SMALL_TOOLBAR), null);; // my vars (dec) -- 2.39.2