bugfixing

This commit is contained in:
rimach crichter@web.de 2011-06-08 16:50:21 +02:00
commit beaa25c9ba
2 changed files with 5 additions and 5 deletions

View File

@ -333,7 +333,7 @@ class SlideController(QtGui.QWidget):
def getControlPanel(self):
return self.controllerLayout
def sendToPlugins(self, **kwargs):
def sendToPlugins(self, *args):
"""
This is the generic function to send signal for control widgets,
created from within other plugins
@ -341,7 +341,7 @@ class SlideController(QtGui.QWidget):
"""
sender = self.sender().objectName() or self.sender().text()
controller = self
Receiver.send_message('%s' % sender, [controller, kwargs])
Receiver.send_message('%s' % sender, [controller, args])
def setPreviewHotkeys(self, parent=None):
self.previousItem.setObjectName(u'previousItemPreview')

View File

@ -247,7 +247,7 @@ class MediaManager(object):
#now start playing
self.video_play([controller])
self.video_pause([controller])
self.video_seek([controller, 0])
self.video_seek([controller, [0]])
self.video_play([controller])
self.set_controls_visible(controller, True)
@ -312,7 +312,7 @@ class MediaManager(object):
Changes the volume of a running video
"""
controller = msg[0]
vol = msg[1]
vol = msg[1][0]
log.debug(u'video_volume %d' % vol)
for display in self.curDisplayMediaAPI.keys():
if display.controller == controller:
@ -324,7 +324,7 @@ class MediaManager(object):
"""
log.debug(u'video_seek')
controller = msg[0]
seekVal = msg[1]
seekVal = msg[1][0]
for display in self.curDisplayMediaAPI.keys():
if display.controller == controller:
self.curDisplayMediaAPI[display].seek(display, seekVal)