Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

status: scroll to top after loading diff

Changeset 55856833dd63

Parent cbaeef188dab

by Steve Borho

Changes to one file · Browse files at 55856833dd63 Showing diff from parent cbaeef188dab Diff from another changeset...

Change 1 of 3 Show Entire File hggtk/​status.py Stacked
 
408
409
410
 
 
 
411
412
413
414
415
416
417
 
 
418
419
420
 
892
893
894
895
 
896
897
898
 
903
904
905
 
906
907
908
 
408
409
410
411
412
413
414
 
415
416
 
 
 
417
418
419
420
421
 
893
894
895
 
896
897
898
899
 
904
905
906
907
908
909
910
@@ -408,13 +408,14 @@
  cell.set_property('foreground', '#888888')   diffcol.add_attribute(cell, 'background-set', DM_REJECTED)   diffcol.add_attribute(cell, 'foreground-set', DM_REJECTED) + difftree.append_column(diffcol) + scroller.add(difftree) + diff_frame.add(scroller)   - difftree.append_column(diffcol)   sel = self.filetree.get_selection()   sel.set_mode(gtk.SELECTION_MULTIPLE) - self.treeselid = sel.connect('changed', self.tree_sel_changed) - scroller.add(difftree) - diff_frame.add(scroller) + self.treeselid = sel.connect('changed', + self.tree_sel_changed, difftree)     if self.diffbottom:   self.diffpane = gtk.VPaned() @@ -892,7 +893,7 @@
  self.merge_diff_text.set_buffer(buf)     - def tree_sel_changed(self, selection): + def tree_sel_changed(self, selection, tree):   'Selected row in file tree activated changed'   # Read this file's diffs into diff model   model, paths = selection.get_selected_rows() @@ -903,6 +904,7 @@
  self.filerowstart = {}   self.diffmodel.clear()   self.append_diff_hunks(wfile) + tree.scroll_to_cell(0, use_align=True, row_align=0.0)     def read_file_chunks(self, wfile):   'Get diffs of working file, parse into (c)hunks'