XObjectBase/GtkListStore.js
[app.Builder.js] / XObjectBase / GtkListStore.js
1
2 //<Script type="Text/javascript">
3
4 XObject = imports.XObject.XObject
5  
6 GObject = imports.gi.GObject;
7 //GtkClutter.Embed..
8 // children are not added at init / but at show stage..
9 // listener is added on show..
10 // we should really add a hock to destroy it..
11 GtkListStore = XObject.define(
12     function(cfg) {
13         XObject.call(this, cfg);
14         // this is an example...
15         this.el.set_column_types ( 6, [
16             GObject.TYPE_STRING, 
17             GObject.TYPE_STRING, 
18             GObject.TYPE_STRING, 
19             GObject.TYPE_STRING, 
20             GObject.TYPE_STRING, 
21             GObject.TYPE_STRING 
22         ] );
23     }, 
24     XObject,
25     {
26         pack : 'set_model'
27     }
28 );