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

RepoStatusPopover.bjs
RepoStatusPopover.vala

index 04e8a30..a960381 100644 (file)
@@ -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",
index 22966a6..26204be 100644 (file)
@@ -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)