diff --git a/ChangeLog b/ChangeLog index 2f2f673b2..eaeb44e3c 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 76c1571ed..af0863f45 100644 --- a/src/DataViews/_RelationView.py +++ b/src/DataViews/_RelationView.py @@ -237,21 +237,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 @@ -403,6 +403,8 @@ 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