Clones.bjs
authorAlan Knowles <alan@akbkhome.com>
Mon, 12 Sep 2011 03:16:19 +0000 (11:16 +0800)
committerAlan Knowles <alan@akbkhome.com>
Mon, 12 Sep 2011 03:16:19 +0000 (11:16 +0800)
Clones.bjs

index 9ffceea..8dfe346 100644 (file)
                                             "|load": "function()\n{\n    //this.insert(citer,iter,0);\n    print(\"getting list\");\n    var tr = imports.Scm.Repo.Repo.list();\n    \n    this.el.clear();\n    for(var i =0 ; i < tr.length; i++) {\n        var ret = {  };\n       \n        this.el.append(ret);\n        \n        //print(JSON.stringify(ret,null,4));\n         tr[i].getBranches();\n          \n        this.el.set_value(ret.iter, 0, '' +  tr[i].repopath.split('/').pop() );\n        this.el.set_value(ret.iter, 1, '' + tr[i].currentBranch   );\n        this.el.set_value(ret.iter, 2, '' + tr[i].branches.map(\n                        function(e) { return e.name; \n                    }).join(', ') \n         );\n        this.el.set_value(ret.iter, 3, '' + 'tbc' );        \n        this.el.set_value(ret.iter, 4, tr[i].autocommit() );                \n        this.el.set_value(ret.iter, 5, tr[i].autopush() );                        \n \n        \n    }     \n}",
                                             "|xns": "Gtk"
                                         },
+                                        {
+                                            "min_width": 50,
+                                            "pack": "append_column",
+                                            "title": "Auto Commit",
+                                            "xtype": "TreeViewColumn",
+                                            "|init": "function() {\n    XObject.prototype.init.call(this);\n    this.el.add_attribute(this.items[0].el , 'active', 4 );\n\n}\n",
+                                            "|xns": "Gtk",
+                                            "items": [
+                                                {
+                                                    "pack": "pack_start",
+                                                    "xtype": "CellRendererToggle",
+                                                    "|xns": "Gtk"
+                                                }
+                                            ]
+                                        },
                                         {
                                             "min_width": 200,
                                             "pack": "append_column",