Bug #963955 : Rename controllersVisible to controlsVisible.

This commit is contained in:
Martin Zibricky 2012-11-06 12:58:32 +01:00
parent 54fac2266e
commit 5c82a0c3dd
2 changed files with 3 additions and 3 deletions

View File

@ -296,7 +296,7 @@ class MediaController(object):
player.resize(display) player.resize(display)
def video(self, controller, file, muted, isBackground, hidden=False, def video(self, controller, file, muted, isBackground, hidden=False,
isInfo=False, controllersVisible=True): isInfo=False, controlsVisible=True):
""" """
Loads and starts a video to run with the option of sound Loads and starts a video to run with the option of sound
""" """
@ -363,7 +363,7 @@ class MediaController(object):
unicode(translate('MediaPlugin.MediaItem', unicode(translate('MediaPlugin.MediaItem',
'Unsupported File'))) 'Unsupported File')))
return False return False
self.set_controls_visible(controller, controllersVisible) self.set_controls_visible(controller, controlsVisible)
log.debug(u'use %s controller' % self.curDisplayMediaPlayer[display]) log.debug(u'use %s controller' % self.curDisplayMediaPlayer[display])
return True return True

View File

@ -216,7 +216,7 @@ class MediaMediaItem(MediaManagerItem):
# Phonon/Webkit. # Phonon/Webkit.
if self.plugin.mediaController.video(self.mediaController, if self.plugin.mediaController.video(self.mediaController,
filename, muted=False, isBackground=False, isInfo=True, filename, muted=False, isBackground=False, isInfo=True,
controllersVisible=False): controlsVisible=False):
self.mediaLength = self.mediaController.media_info.length self.mediaLength = self.mediaController.media_info.length
service_item.media_length = self.mediaLength service_item.media_length = self.mediaLength
if self.mediaLength > 0: if self.mediaLength > 0: