Clones.bjs
authorAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:00:40 +0000 (13:00 +0800)
committerAlan Knowles <alan@roojs.com>
Tue, 30 Oct 2018 05:00:40 +0000 (13:00 +0800)
Clones.vala

Clones.bjs
Clones.vala

index fa023d8..84cf9d9 100644 (file)
            ]
           },
           {
-           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(this.items[0].el , 'active', 5 );\n      this.items[0].el.set_activatable(true);\n}\n",
+           "* init" : " \n    this.el.add_attribute(this.items[0].el , 'active', 5 );\n//      this.items[0].el.set_activatable(true);\n\n",
            "* pack" : "append_column",
            "title" : "Auto Push",
            "xtype" : "TreeViewColumn",
index 073cd95..9a9d031 100644 (file)
@@ -662,11 +662,8 @@ public class Clones : Object
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(this.items[0].el , 'active', 5 );
-                  this.items[0].el.set_activatable(true);
-            }
+            this.el.add_attribute(this.items[0].el , 'active', 5 );
+            //      this.items[0].el.set_activatable(true);
         }
 
         // user defined functions