diff options
Diffstat (limited to 'atoidejouer/ui/panel/sound.py')
-rw-r--r-- | atoidejouer/ui/panel/sound.py | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/atoidejouer/ui/panel/sound.py b/atoidejouer/ui/panel/sound.py index cb94d9d..a614e69 100644 --- a/atoidejouer/ui/panel/sound.py +++ b/atoidejouer/ui/panel/sound.py @@ -102,8 +102,6 @@ class PanelSound(gtk.Frame): _children = self._scrolled_hbox.get_children() for _c in _children: _c.destroy() - # add box in viewport - self._scrolled_window.add_with_viewport(self._scrolled_hbox) def get_current_pos(self): # get children @@ -123,10 +121,10 @@ class PanelSound(gtk.Frame): # update current self._current = _children[_index] # update toolbar frame entry - if self.screen.toolbar._frame_entry is None: + if self.screen.activity._toolbar._frame_entry is None: pass else: - self.screen.toolbar._frame_entry.set_text(str(_index)) + self.screen.activity._toolbar._frame_entry.set_text(str(_index)) else: pass @@ -205,8 +203,8 @@ class PanelSound(gtk.Frame): def refresh(self): self.clear() # get the current frame - _time = 0.0 if self.screen.toolbar.activity._thread is None\ - else self.screen.toolbar.activity._thread._time + _time = 0.0 if self.screen.activity._thread is None\ + else self.screen.activity._thread._time # get the current rate for _k in story.DB().get(story.Key(mime_type='audio/ogg', time=_time)): self.add_key(_k) |