From: Alan Knowles Date: Mon, 24 Dec 2018 07:34:15 +0000 (+0800) Subject: Clones.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=efac848e8883025ad655bbab4a422926e598510d Clones.bjs Clones.vala --- diff --git a/Clones.bjs b/Clones.bjs index ca52060e..a7edb5e5 100644 --- a/Clones.bjs +++ b/Clones.bjs @@ -50,6 +50,7 @@ ] }, { + "id" : "scrolled", "* init" : " {\n \n this.el.set_policy (Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC);\n}\n", "bool expand" : true, "bool hexpand" : true, diff --git a/Clones.vala b/Clones.vala index 6f6d78b0..1812b08a 100644 --- a/Clones.vala +++ b/Clones.vala @@ -13,6 +13,7 @@ public class Clones : Object return _Clones; } public Xcls_toolbar toolbar; + public Xcls_scrolled scrolled; public Xcls_reposView reposView; public Xcls_reposStore reposStore; public Xcls_tv_autocommit tv_autocommit; @@ -129,7 +130,7 @@ public class Clones : Object var child_0 = new Xcls_toolbar( _this ); child_0.ref(); this.el.pack_start ( child_0.el , false,false,0 ); - var child_1 = new Xcls_ScrolledWindow5( _this ); + var child_1 = new Xcls_scrolled( _this ); child_1.ref(); this.el.pack_end ( child_1.el , true,true,0 ); } @@ -200,7 +201,7 @@ public class Clones : Object } - public class Xcls_ScrolledWindow5 : Object + public class Xcls_scrolled : Object { public Gtk.ScrolledWindow el; private Clones _this; @@ -209,9 +210,10 @@ public class Clones : Object // my vars (def) // ctor - public Xcls_ScrolledWindow5(Clones _owner ) + public Xcls_scrolled(Clones _owner ) { _this = _owner; + _this.scrolled = this; this.el = new Gtk.ScrolledWindow( null, null ); // my vars (dec)