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

Clones.bjs
Clones.vala

index 1e61436..9356b0d 100644 (file)
           },
           {
            "id" : "tv_current_branch",
-           "* init" : "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(_this.cr_current_branch.el , \"markup\", 1 );\n     this.el.add_attribute(_this.cr_current_branch.el, \"cell-background\", 7 );\n\n}\n",
+           "* init" : " \n    this.el.add_attribute(_this.cr_current_branch.el , \"markup\", 1 );\n     this.el.add_attribute(_this.cr_current_branch.el, \"cell-background\", 7 );\n \n",
            "* pack" : "append_column",
            "title" : "Current Branch",
            "xtype" : "TreeViewColumn",
index bb4ebe4..066a3cd 100644 (file)
@@ -805,12 +805,8 @@ public class Clones : Object
 
             // init method
 
-            function() {
-                XObject.prototype.init.call(this);
-                this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
+            this.el.add_attribute(_this.cr_current_branch.el , "markup", 1 );
                  this.el.add_attribute(_this.cr_current_branch.el, "cell-background", 7 );
-            
-            }
         }
 
         // user defined functions