+ "id" : "tv_autobranch",
+ "* init" : " \n this.el.add_attribute(_this.cr_autobranch.el , \"active\", 8 );\n// this.items[0].el.set_activatable(true);\n\n",
+ "* pack" : "append_column",
+ "title" : "Auto Branch",
+ "xtype" : "TreeViewColumn",
+ "min_width" : 50,
+ "$ xns" : "Gtk",
+ "items" : [
+ {
+ "listeners" : {
+ "toggled" : " (self, path) => {\n \n \tGtk.TreeIter iter;\n \t_this.reposStore.el.get_iter_from_string(out iter, path);\n \t\n \tGLib.Value val;\n \tGLib.Value rval;\n \t_this.reposStore.el.get_value(iter, 8, out val);\n \t_this.reposStore.el.get_value(iter, 6, out rval);\n \t\n \tvar repopath = (string)rval;\n \tvar bval = (bool)val;\n \t_this.reposStore.el.set_value(iter, 8, !bval);\n \tvar repo = GitRepo.get(repopath);\n \trepo.set_auto_branch(!bval);\n \t\n \t\n \t\n \n}"
+ },
+ "id" : "cr_autobranch",
+ "xtype" : "CellRendererToggle",
+ "* pack" : "pack_start,false",
+ "$ xns" : "Gtk",
+ "$ mode" : "Gtk.CellRendererMode.ACTIVATABLE"
+ }
+ ]
+ },
+ {
+ "id" : "tv_repo",
+ "* init" : "\n this.el.add_attribute(_this.cr_repo.el , \"markup\", 0 );\n",
+ "Gtk.SortType sort_order" : "Gtk.SortType.ASCENDING",