From fb34cf5d92b71dc2fcfa2aca386ad929cbd8af85 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Tue, 18 Dec 2018 12:04:39 +0800 Subject: [PATCH] NewBranch.bjs NewBranch.vala --- NewBranch.bjs | 2 +- NewBranch.vala | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) 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) -- 2.39.2