XObjectBase/GtkTreeViewColumn.js
authorAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 10:58:11 +0000 (18:58 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 10:58:11 +0000 (18:58 +0800)
XObjectBase/GtkTreeViewColumn.js

index 785b93e..77d1c87 100644 (file)
@@ -13,10 +13,13 @@ GtkTreeViewColumn = XObject.define(
         // this is an example...
         GtkTreeViewColumn.ids++;
         this.col_id = GtkTreeViewColumn.ids;
+        
     }, 
     XObject,
     {
         pack : function(parent, item) {
+            this.list = this.parent;
+            
             parent.el.append_column(this.el);
             var n = 0;
             var _t = this;
@@ -42,6 +45,7 @@ GtkTreeViewColumn = XObject.define(
             
             if (this.items.length) {
                 print("child : " + XObject.type(this.items[0].xtype));
+                this.items[0].list = this.list;
                 switch (XObject.type(this.items[0].xtype)) {
                     case "GtkCellRendererText":
                         this.el.add_attribute(this.items[0].el , 'markup', col );