XObjectBase/GtkScrolledWindow.js
[app.Builder.js] / 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 WebKitWebView  = {
10  
11     pack : function(parent, item)
12     {
13         
14         if (XObject.type(parent.xtype) == 'GtkScrolledWindow') {
15             parent.el.add(this.el);
16             return;
17         }
18         XObject.fatal("do not know how to pack webview to" +  XObject.type(parent.xtype));
19         
20     } 
21      
22
23 };