Builder/LeftProjectTree.js
authorAlan Knowles <alan@akkbhome.com>
Tue, 18 May 2010 15:53:09 +0000 (23:53 +0800)
committerAlan Knowles <alan@akkbhome.com>
Tue, 18 May 2010 15:53:09 +0000 (23:53 +0800)
Builder/LeftProjectTree.js

index e4b1759..a5b232a 100755 (executable)
@@ -485,18 +485,19 @@ LeftProjectTree = new XObject({
                                 pack : ['append_column'],
                                 
                                 xtype : Gtk.TreeViewColumn,
+                                
+                                init :  function ()
+                                {
+                                    XObject.prototype.init.call(this);    
+                                    this.el.add_attribute(this.items[0].el , 'markup', 0 );
+                                    
+                                }
                                 items : [
                                     {
                                         
                                         xtype : Gtk.CellRendererText,
                                         pack: [ 'pack_start'],
-                                        init :  function ()
-                                        {
-                                            XObject.prototype.init.call(this);    
-                                    
-                                            this.parent.el.add_attribute(this.el , 'markup', 0 );
-                                            
-                                        }
+                                        
                                     } 
                                 ],