resources/RooUsage.txt
[app.Builder.js] / old-javascript / XObjectBase / WebKitWebView.js
1 //<Script type="Text/javascript">
2
3 XObject = imports.XObject.XObject 
4
5 //GtkClutter.Embed..
6 // children are not added at init / but at show stage..
7 // listener is added on show..
8 // we should really add a hock to destroy it..
9
10
11 WebKitWebView = XObject.define(
12     function(cfg) {
13         XObject.call(this, cfg);
14      
15     }, 
16     XObject,
17     {
18         pack : function(parent, item)
19         {
20             
21             if (XObject.type(parent.xtype) == 'GtkScrolledWindow') {
22                 parent.el.add(this.el);
23                 return;
24             }
25             XObject.fatal("do not know how to pack webview to" +  XObject.type(parent.xtype));
26             
27         } 
28     }
29  
30 ); 
31