XObjectBase/GtkTreeStore.js
[app.Builder.js] / XObjectBase / GtkTreeStore.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        
16     }, 
17     XObject,
18     {
19         pack : false,
20         init : function() 
21         {
22             // this is done before pack?
23             this.el = new Gtk.TreeViewColumn();
24             this.parent.el.append_column(this.el);
25             
26             XObject.prototype.init.call(this);
27             this.el.add_attribute(this.items[0].el , 'markup', 4  );
28
29             
30             XObject.prototype.init.call(this);
31             this.el.set_column_types ( 6, [
32                 GObject.TYPE_STRING, 
33                 GObject.TYPE_STRING, 
34                 GObject.TYPE_STRING, 
35                 GObject.TYPE_STRING, 
36                 GObject.TYPE_STRING, 
37                 GObject.TYPE_STRING 
38             ] );
39             
40         }
41     }
42 );