When navigating with the timeline, select the line in the center of the view

This commit is contained in:
René Stadler 2007-11-29 11:19:00 +02:00 committed by Stefan Sauer
parent 7032df7e73
commit 769a3d9d7c

View file

@ -809,7 +809,10 @@ class TimelineFeature (FeatureBase):
model = self.log_view.props.model
row = model[count]
self.log_view.scroll_to_cell ((count,), use_align = True, row_align = .5)
path = (count,)
self.log_view.scroll_to_cell (path, use_align = True, row_align = .5)
sel = self.log_view.get_selection ()
sel.select_path (path)
return False