Read about our upcoming Code of Conduct on this issue

Commit 5c95afe3 authored by Yuki KODAMA's avatar Yuki KODAMA
Browse files

changeset: reset scroll positions of diff pane

--HG--
branch : stable
parent ad1c49b26627
......@@ -232,6 +232,12 @@ class ChangeSet(gdialog.GDialog):
else:
self.append_all_patch_diffs()
# reset position of diff pane's scroll bar
adj = self.diffscroller.get_vadjustment()
adj.set_value(0)
adj = self.diffscroller.get_hadjustment()
adj.set_value(0)
def generate_change_header(self):
self.summarypanel.update(self.currev, self.csetstyle)
self.summarybox.show()
......@@ -424,6 +430,7 @@ class ChangeSet(gdialog.GDialog):
scroller = gtk.ScrolledWindow()
scroller.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
details_frame.add(scroller)
self.diffscroller = scroller
details_box = gtk.VBox()
scroller.add_with_viewport(details_box)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment