From 11f7e8f96298522baab894c0d41ab47079a384ca Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Wed, 19 Dec 2018 13:19:45 +0800 Subject: [PATCH] RepoStatusPopover.bjs RepoStatusPopover.vala --- RepoStatusPopover.bjs | 1 + RepoStatusPopover.vala | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index 32dc5030..abd78e64 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -130,6 +130,7 @@ "button_press_event" : "() => {\n var oldq = new Gee.ArrayList(); \n\n\tClones.singleton().el.response(-1);\n\tNewBranch.singleton().show(_this.repo, oldq);\n\n return false;\n}" }, "label" : "Create Branch / Start ticket", + "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-goto-top\", Gtk.IconSize.SMALL_TOOLBAR), null);", "xtype" : "ToolButton", "* pack" : "add", "$ xns" : "Gtk" diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index d08e958a..082e2397 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -488,11 +488,12 @@ public class RepoStatusPopover : Object public Xcls_ToolButton16(RepoStatusPopover _owner ) { _this = _owner; - this.el = new Gtk.ToolButton( null, "Create Branch / Start ticket" ); + this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-goto-top", Gtk.IconSize.SMALL_TOOLBAR), null);; // my vars (dec) // set gobject values + this.el.label = "Create Branch / Start ticket"; //listeners this.el.button_press_event.connect( () => { -- 2.39.2