2007-10-07 Gary Burton <gary.burton@zen.co.uk>
* src/DataViews/_RelationView.py: init scroll pos on new person, issue #442 svn: r9097
This commit is contained in:
parent
8740b50c2b
commit
4f7ebd5b3e
@ -1,3 +1,6 @@
|
|||||||
|
2007-10-07 Gary Burton <gary.burton@zen.co.uk>
|
||||||
|
* src/DataViews/_RelationView.py: init scroll pos on new person, issue #442
|
||||||
|
|
||||||
2007-10-07 Gary Burton <gary.burton@zen.co.uk>
|
2007-10-07 Gary Burton <gary.burton@zen.co.uk>
|
||||||
* src/PageView.py: sort column retains filter value, issue #507
|
* src/PageView.py: sort column retains filter value, issue #507
|
||||||
|
|
||||||
|
@ -237,21 +237,21 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
|
|
||||||
self.child = None
|
self.child = None
|
||||||
|
|
||||||
scroll = gtk.ScrolledWindow()
|
self.scroll = gtk.ScrolledWindow()
|
||||||
scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
|
self.scroll.set_policy(gtk.POLICY_AUTOMATIC, gtk.POLICY_AUTOMATIC)
|
||||||
scroll.show()
|
self.scroll.show()
|
||||||
|
|
||||||
vp = gtk.Viewport()
|
vp = gtk.Viewport()
|
||||||
vp.set_shadow_type(gtk.SHADOW_NONE)
|
vp.set_shadow_type(gtk.SHADOW_NONE)
|
||||||
vp.add(self.vbox)
|
vp.add(self.vbox)
|
||||||
|
|
||||||
scroll.add(vp)
|
self.scroll.add(vp)
|
||||||
scroll.show_all()
|
self.scroll.show_all()
|
||||||
|
|
||||||
container.set_spacing(6)
|
container.set_spacing(6)
|
||||||
container.pack_start(self.header, False, False)
|
container.pack_start(self.header, False, False)
|
||||||
container.pack_start(gtk.HSeparator(), False, False)
|
container.pack_start(gtk.HSeparator(), False, False)
|
||||||
container.add(scroll)
|
container.add(self.scroll)
|
||||||
container.show_all()
|
container.show_all()
|
||||||
return container
|
return container
|
||||||
|
|
||||||
@ -403,6 +403,8 @@ class RelationshipView(PageView.PersonNavView):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def _change_person(self, obj):
|
def _change_person(self, obj):
|
||||||
|
self.scroll.get_vadjustment().value = \
|
||||||
|
self.scroll.get_vadjustment().lower
|
||||||
if self.redrawing:
|
if self.redrawing:
|
||||||
return False
|
return False
|
||||||
self.redrawing = True
|
self.redrawing = True
|
||||||
|
Loading…
Reference in New Issue
Block a user