diff --git a/ChangeLog b/ChangeLog index b8af63da7..30de08453 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-10-07 Gary Burton + * src/DataViews/_RelationView.py: init scroll pos on new person, issue #442 + 2007-10-07 Gary Burton * src/PageView.py: sort column retains filter value, issue #507 diff --git a/src/DataViews/_RelationView.py b/src/DataViews/_RelationView.py index 641ab30b3..bcd20e3b6 100644 --- a/src/DataViews/_RelationView.py +++ b/src/DataViews/_RelationView.py @@ -229,21 +229,21 @@ class RelationshipView(PageView.PersonNavView): self.child = None - scroll = gtk.ScrolledWindow() - scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) - scroll.show() + self.scroll = gtk.ScrolledWindow() + self.scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC) + self.scroll.show() vp = gtk.Viewport() vp.set_shadow_type(gtk.SHADOW_NONE) vp.add(self.vbox) - scroll.add(vp) - scroll.show_all() + self.scroll.add(vp) + self.scroll.show_all() container.set_spacing(6) container.pack_start(self.header, False, False) container.pack_start(gtk.HSeparator(), False, False) - container.add(scroll) + container.add(self.scroll) container.show_all() return container @@ -395,6 +395,9 @@ class RelationshipView(PageView.PersonNavView): return True def _change_person(self, obj): + self.scroll.get_vadjustment().value = \ + self.scroll.get_vadjustment().lower + if self.redrawing: return False self.redrawing = True