- "id" : "tv_autocommit",
- "* init" : "\n// this.items[0].el.set_activatable(true);\n this.el.add_attribute(_this.cr_autocommit.el , \"active\", 4 );\n\n",
- "* pack" : "append_column",
- "title" : "Auto Commit",
- "xtype" : "TreeViewColumn",
- "min_width" : 50,
- "$ xns" : "Gtk",
- "items" : [
- {
- "listeners" : {
- "toggled" : " (self, path) => {\n/* var ret ={} ;\n var store = this.get('/reposStore');\n store.el.get_iter_from_string(ret, path);\n \n var value = store.el.get_value(ret.iter,4).value.get_boolean();\n \n //print(JSON.stringify(value));\n store.el.set_value(ret.iter,4, !value);\n \n var path = store.el.get_value(ret.iter, 6).value.get_string();\n var repo = imports.Scm.Repo.Repo.get(path);\n repo.autocommit(!value);\n */ \n \n \n}"
- },
- "id" : "cr_autocommit",
- "xtype" : "CellRendererToggle",
- "* pack" : "pack_start,false",
- "$ xns" : "Gtk",
- "$ mode" : "Gtk.CellRendererMode.ACTIVATABLE"
- }
- ]
- },
- {
- "id" : "tv_autopush",
- "* init" : " \n this.el.add_attribute(_this.cr_autopush.el , \"active\", 5 );\n// this.items[0].el.set_activatable(true);\n\n",
- "* pack" : "append_column",
- "title" : "Auto Push",
- "xtype" : "TreeViewColumn",
- "min_width" : 50,
- "$ xns" : "Gtk",
- "items" : [
- {
- "listeners" : {
- "toggled" : " (self, path) => {\n/* var ret ={} ;\n var store = this.get('/reposStore');\n store.el.get_iter_from_string(ret, path);\n \n var value = store.el.get_value(ret.iter,5).value.get_boolean();\n \n //print(JSON.stringify(value));\n store.el.set_value(ret.iter,5, !value);\n var path = store.el.get_value(ret.iter, 6).value.get_string();\n var repo = imports.Scm.Repo.Repo.get(path);\n repo.autopush(!value);\n */\n}"
- },
- "id" : "cr_autopush",
- "xtype" : "CellRendererToggle",
- "* pack" : "pack_start,false",
- "$ xns" : "Gtk",
- "$ mode" : "Gtk.CellRendererMode.ACTIVATABLE"
- }
- ]
- },
- {
- "id" : "tv_repo",
- "Gtk.SortType sort_order" : "Gtk.SortType.ASCENDING",
- "* init" : "\n this.el.add_attribute(_this.cr_repo.el , \"markup\", 0 );\n",
- "title" : "Repo",
- "* pack" : "append_column",
- "xtype" : "TreeViewColumn",
- "int sort_column_id" : 0,
- "min_width" : 200,
- "$ xns" : "Gtk",
- "resizable" : true,
- "items" : [
- {
- "id" : "cr_repo",
- "xtype" : "CellRendererText",
- "* pack" : "pack_start,false",
- "$ xns" : "Gtk"
- }
- ]
- },
- {
- "id" : "tv_current_branch",
- "* 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",
- "min_width" : 50,
- "$ xns" : "Gtk",
- "items" : [
- {
- "id" : "cr_current_branch",
- "xtype" : "CellRendererText",
- "* pack" : "pack_start,false",
- "$ xns" : "Gtk"
- }
- ]
- },
- {
- "id" : "tv_last_updated",
- "* init" : "\n this.el.add_attribute(_this.cr_last_updated.el , \"markup\", 3 );\n",
- "* pack" : "append_column",
- "title" : "Last updated",
- "xtype" : "TreeViewColumn",
- "min_width" : 50,
- "$ xns" : "Gtk",
- "items" : [
- {
- "id" : "cr_last_updated",
- "xtype" : "CellRendererText",
- "* pack" : "pack_start,false",
- "$ xns" : "Gtk"
- }
- ]