src/Builder4/DialogPluginWebkit.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 16 Apr 2015 08:52:07 +0000 (16:52 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 16 Apr 2015 08:52:07 +0000 (16:52 +0800)
src/Builder4/DialogPluginWebkit.vala

src/Builder4/DialogPluginWebkit.bjs
src/Builder4/DialogPluginWebkit.vala

index 45bbef0..56e8ba9 100644 (file)
@@ -32,7 +32,7 @@
        "$ xns" : "Gtk",
        "items" : [
         {
-         "id" : "patchview",
+         "id" : "webview",
          "* init" : " {\n    // this may not work!?\n    var settings =  this.el.get_settings();\n    \n     \n    //var fs= new FakeServer(this.el);\n    //fs.ref();\n    // this was an attempt to change the url perms.. did not work..\n    // settings.enable_file_access_from_file_uris = true;\n    // settings.enable_offline_web_application_cache - true;\n    // settings.enable_universal_access_from_file_uris = true;\n   \n     \n    \n    \n    \n\n     // FIXME - base url of script..\n     // we need it so some of the database features work.\n    this.el.load_html( \"Render not ready\" , \n            //fixme - should be a config option!\n            // or should we catch stuff and fix it up..\n            \"xhttp://localhost/app.Builder/\"\n    );\n        \n        \n    \n    \n}\n",
          "xtype" : "WebView",
          "* pack" : "add",
index 0a0ddc3..843aaa4 100644 (file)
@@ -12,7 +12,7 @@ public class Xcls_DialogPluginWebkit : Object
         }
         return _DialogPluginWebkit;
     }
-    public Xcls_patchview patchview;
+    public Xcls_webview webview;
 
         // my vars (def)
 
@@ -119,7 +119,7 @@ public class Xcls_DialogPluginWebkit : Object
             // my vars (dec)
 
             // set gobject values
-            var child_0 = new Xcls_patchview( _this );
+            var child_0 = new Xcls_webview( _this );
             child_0.ref();
             this.el.add (  child_0.el  );
 
@@ -130,7 +130,7 @@ public class Xcls_DialogPluginWebkit : Object
 
         // user defined functions 
     }
-    public class Xcls_patchview : Object 
+    public class Xcls_webview : Object 
     {
         public WebKit.WebView el;
         private Xcls_DialogPluginWebkit  _this;
@@ -139,10 +139,10 @@ public class Xcls_DialogPluginWebkit : Object
             // my vars (def)
 
         // ctor 
-        public Xcls_patchview(Xcls_DialogPluginWebkit _owner )
+        public Xcls_webview(Xcls_DialogPluginWebkit _owner )
         {
             _this = _owner;
-            _this.patchview = this;
+            _this.webview = this;
             this.el = new WebKit.WebView();
 
             // my vars (dec)