dbgenerate.js
[app.Builder.js] / XObjectBase / WebKitWebView.js
index 2f74647..0adb51e 100644 (file)
@@ -1,24 +1,31 @@
 //<Script type="Text/javascript">
 
-XObject = imports.XObject.XObject
-GtkClutter = imports.gi.GtkClutter;
+XObject = imports.XObject.XObject 
 
 //GtkClutter.Embed..
 // children are not added at init / but at show stage..
 // listener is added on show..
 // we should really add a hock to destroy it..
-WebKitWebView  = {
-    pack : function(parent, item)
-    {
-        
-        if (XObject.type(parent.xtype) == 'GtkScrolledWinow') {
-            parent.el.add(this.el);
-            return;
-        }
-        XObject.fatal("do not know how to pack webview to" +  XObject.type(parent.xtype));
-        
-    } 
-     
 
-};
\ No newline at end of file
+
+WebKitWebView = XObject.define(
+    function(cfg) {
+        XObject.call(this, cfg);
+     
+    }, 
+    XObject,
+    {
+        pack : function(parent, item)
+        {
+            
+            if (XObject.type(parent.xtype) == 'GtkScrolledWindow') {
+                parent.el.add(this.el);
+                return;
+            }
+            XObject.fatal("do not know how to pack webview to" +  XObject.type(parent.xtype));
+            
+        } 
+    }
+); 
+  
\ No newline at end of file