2 //<Script type="Text/javascript">
4 XObject = imports.XObject.XObject
6 GObject = imports.gi.GObject;
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 GtkTreeViewColumn = XObject.define(
13 XObject.call(this, cfg);
14 // this is an example...
19 pack : function(parent, item) {
20 parent.el.append_column(this.el);
25 parent.items.forEach(function(e){
34 if (XObject.type(e.xtype) == 'GtkTreeViewColumn') {
38 if (this.items.length) {
39 this.el.add_attribute(this.items[0].el , 'markup', 4 );
46 // this is done before pack?
47 // this.el = new Gtk.TreeViewColumn();
48 // this.parent.el.append_column(this.el);
50 XObject.prototype.init.call(this);
54 if (this.items.length) {
55 this.el.add_attribute(this.items[0].el , 'markup', 4 );