From: Alan Knowles Date: Wed, 19 Dec 2018 05:19:45 +0000 (+0800) Subject: RepoStatusPopover.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=11f7e8f96298522baab894c0d41ab47079a384ca RepoStatusPopover.bjs RepoStatusPopover.vala --- 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( () => {