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

index 5c0de86..726e08b 100755 (executable)
@@ -377,19 +377,18 @@ RightPalete = 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 );
-                                                },
+                                                pack: [ 'pack_start']
                                                   
                                             } 
                                         ]