Skip to content

Commit

Permalink
adjust to changed GUI application concept
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Meyer committed Aug 5, 2012
1 parent 52268e1 commit 1d34aa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/plugins/audio/player.py
Expand Up @@ -99,7 +99,7 @@ def play(self, item):
# update GUI
yield kaa.NotFinished
# Open media item and start playback
self.player = self.widget.stage.get_widget('player')
self.player = self.widget.get_widget('player')
self.player.url = item.filename
self.player.signals['finished'].connect_weak_once(self.PLAY_END.post, self.item)
self.player.signals['progress'].connect_weak(self.set_elapsed)
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/video/player.py
Expand Up @@ -53,7 +53,7 @@ class Player(freevo.Application):
player = None

def __init__(self):
capabilities = (freevo.CAPABILITY_FULLSCREEN, )
capabilities = (freevo.CAPABILITY_TOGGLE, freevo.CAPABILITY_FULLSCREEN, )
super(Player, self).__init__('video', capabilities)

@kaa.coroutine()
Expand Down Expand Up @@ -109,7 +109,7 @@ def play(self, item):
# unless it is a playlist, in this case we want to reuse the
# player
self.streaminfo = None
self.player = self.widget.stage.get_widget('player')
self.player = self.widget.get_widget('player')
self.player.url = item.filename or item.url
self.player.config['mplayer.passthrough'] = \
bool(freevo.config.video.player.mplayer.passthrough)
Expand Down

0 comments on commit 1d34aa2

Please sign in to comment.