Stefan Schuermans commited on 2014-05-21 20:32:16
Showing 1 changed files, with 4 additions and 2 deletions.
| ... | ... |
@@ -125,14 +125,16 @@ class StageDirector: |
| 125 | 125 |
if self.stEntryIdx >= 0: |
| 126 | 126 |
self.stName = self.playlist.entries[self.stEntryIdx]["name"] |
| 127 | 127 |
# make current entry bold, all others non-bold |
| 128 |
- def update(model, path, it, user_data): |
|
| 128 |
+ # scroll current entry into view |
|
| 129 |
+ def update(model, path, it, stageDirector): |
|
| 129 | 130 |
(idx,) = model.get(it, 0) |
| 130 | 131 |
if idx == self.stEntryIdx: |
| 131 | 132 |
weight = Pango.Weight.BOLD |
| 133 |
+ stageDirector.widPlaylistView.scroll_to_cell(path) |
|
| 132 | 134 |
else: |
| 133 | 135 |
weight = Pango.Weight.NORMAL |
| 134 | 136 |
model.set(it, 1, weight) |
| 135 |
- self.widPlaylistStore.foreach(update, None) |
|
| 137 |
+ self.widPlaylistStore.foreach(update, self) |
|
| 136 | 138 |
# playing and (no entry or stop entry or single-step mode) |
| 137 | 139 |
# -> stop playing and update button visibility |
| 138 | 140 |
if self.stPlaying and \ |
| 139 | 141 |