- var child_0 = new Xcls_reposStore( _this );
- child_0.ref();
- this.el.set_model ( child_0.el );
- var child_1 = new Xcls_tv_autocommit( _this );
- child_1.ref();
- this.el.append_column ( child_1.el );
- var child_2 = new Xcls_tv_autopush( _this );
- child_2.ref();
- this.el.append_column ( child_2.el );
- var child_3 = new Xcls_tv_repo( _this );
- child_3.ref();
- this.el.append_column ( child_3.el );
- var child_4 = new Xcls_tv_current_branch( _this );
- child_4.ref();
- this.el.append_column ( child_4.el );
- var child_5 = new Xcls_tv_last_updated( _this );
- child_5.ref();
- this.el.append_column ( child_5.el );
- var child_6 = new Xcls_tv_all_branches( _this );
- child_6.ref();
- this.el.append_column ( child_6.el );
-
- // init method
-
- {
- var selection = this.el.get_selection();
- selection.set_mode( Gtk.SelectionMode.SINGLE);
-
-
- var description = new Pango.FontDescription();
- description.set_size(10000);
- this.el.override_font(description);
-
- }
-
- //listeners
- this.el.cursor_changed.connect( () => {
- // SEE SELECTION.CHANGED
- /*
-
- return;
-
- if (this.el.get_selection().count_selected_rows() < 1) {
- //nothing? - clea it?
- return;
- }
- var ret = {};
- var model = this.get('/changedFilesStore');
-
- var s = this.el.get_selection();
- var files = [];
- s.selected_foreach(function(model,p,iter) {
-
- files.push( model.get_value(iter, 0).value.get_string());
-
- });
- this.get('/patchview').showDiff(files);
- //var value = ''+ ret.model.get_value(ret.iter, 1).value.get_string();
- //print("OUT?" + value);// id..
- // load the list in the right grid..
-
- return true;
- */
- });