From: Alan Knowles Date: Tue, 18 Dec 2018 04:04:39 +0000 (+0800) Subject: NewBranch.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=fb34cf5d92b71dc2fcfa2aca386ad929cbd8af85 NewBranch.bjs NewBranch.vala --- diff --git a/NewBranch.bjs b/NewBranch.bjs index c350bb43..661d1889 100644 --- a/NewBranch.bjs +++ b/NewBranch.bjs @@ -208,9 +208,9 @@ "$ xns" : "Gtk", "items" : [ { + "id" : "view", "* pack" : "add", "xtype" : "WebView", - "bool print_started" : false, "$ xns" : "WebKit" } ] diff --git a/NewBranch.vala b/NewBranch.vala index 5342f616..bb00de1d 100644 --- a/NewBranch.vala +++ b/NewBranch.vala @@ -22,6 +22,7 @@ public class NewBranch : Object public Xcls_btn_not_me btn_not_me; public Xcls_btn_closed btn_closed; public Xcls_scrolled_window scrolled_window; + public Xcls_view view; // my vars (def) public GitRepo? repo; @@ -853,7 +854,7 @@ public class NewBranch : Object // my vars (dec) // set gobject values - var child_0 = new Xcls_WebView21( _this ); + var child_0 = new Xcls_view( _this ); child_0.ref(); this.el.add ( child_0.el ); @@ -866,7 +867,7 @@ public class NewBranch : Object // user defined functions } - public class Xcls_WebView21 : Object + public class Xcls_view : Object { public WebKit.WebView el; private NewBranch _this; @@ -875,9 +876,10 @@ public class NewBranch : Object // my vars (def) // ctor - public Xcls_WebView21(NewBranch _owner ) + public Xcls_view(NewBranch _owner ) { _this = _owner; + _this.view = this; this.el = new WebKit.WebView(); // my vars (dec)