2 //<Script type="Text/javascript">
4 XObject = imports.XObject.XObject
6 GObject = imports.gi.GObject;
8 // tree view column.. should really have a better way to determin stuff..
10 GtkTreeViewColumn = XObject.define(
12 XObject.call(this, cfg);
13 // this is an example...
18 pack : function(parent, item) {
19 parent.el.append_column(this.el);
24 parent.items.forEach(function(e){
33 if (XObject.type(e.xtype) == 'GtkTreeViewColumn') {
39 if (this.items.length) {
40 print("child : " + XObject.type(this.items[0].xtype));
41 switch (XObject.type(this.items[0].xtype)) {
42 case "GtkCellRendererText":
43 this.el.add_attribute(this.items[0].el , 'markup', col );
45 case "GtkCellRendererToggle":
46 print("toggle col : " + col);
47 this.el.add_attribute(this.items[0].el , 'active', col ); // boolean???