RepoStatusPopover.bjs
authorAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 05:15:57 +0000 (13:15 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 19 Dec 2018 05:15:57 +0000 (13:15 +0800)
RepoStatusPopover.vala

RepoStatusPopover.bjs
RepoStatusPopover.vala

index 6d39da8..68d773a 100644 (file)
             "button_press_event" : "() => {\n\n   _this.el.hide();\n   Clones.singleton().el.response(-1);\n   if (_this.repo.activeTicket != null) {\n\t   MergeBranch.singleton().show(_this.repo.activeTicket, null);   \n   }\n    return false;\n}"
            },
            "label" : "Merge branch/  ticket",
+           "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-new\", Gtk.IconSize.SMALL_TOOLBAR), null);",
            "xtype" : "ToolButton",
            "* pack" : "add",
            "$ xns" : "Gtk"
index 4c73ac6..5f16109 100644 (file)
@@ -596,11 +596,12 @@ public class RepoStatusPopover : Object
         public Xcls_ToolButton19(RepoStatusPopover _owner )
         {
             _this = _owner;
-            this.el = new Gtk.ToolButton( null, "Merge branch/  ticket" );
+            this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-new", Gtk.IconSize.SMALL_TOOLBAR), null);;
 
             // my vars (dec)
 
             // set gobject values
+            this.el.label = "Merge branch/  ticket";
 
             //listeners
             this.el.button_press_event.connect( () => {