bzr-revno: 1754
Fixes: https://launchpad.net/bugs/803342
This commit is contained in:
Raoul Snyman 2011-09-20 20:03:42 +02:00
commit 854cdf2c83
2 changed files with 4 additions and 1 deletions

View File

@ -144,7 +144,7 @@ def image_to_byte(image):
# convert to base64 encoding so does not get missed! # convert to base64 encoding so does not get missed!
return byte_array.toBase64() return byte_array.toBase64()
def resize_image(image_path, width, height, background): def resize_image(image_path, width, height, background=u'#000000'):
""" """
Resize an image to fit on the current screen. Resize an image to fit on the current screen.
@ -159,6 +159,8 @@ def resize_image(image_path, width, height, background):
``background`` ``background``
The background colour defaults to black. The background colour defaults to black.
DO NOT REMOVE THE DEFAULT BACKGROUND VALUE!
""" """
log.debug(u'resize_image - start') log.debug(u'resize_image - start')
reader = QtGui.QImageReader(image_path) reader = QtGui.QImageReader(image_path)

View File

@ -56,6 +56,7 @@ class PresentationMediaItem(MediaManagerItem):
MediaManagerItem.__init__(self, parent, plugin, icon) MediaManagerItem.__init__(self, parent, plugin, icon)
self.message_listener = MessageListener(self) self.message_listener = MessageListener(self)
self.hasSearch = True self.hasSearch = True
self.singleServiceItem = False
QtCore.QObject.connect(Receiver.get_receiver(), QtCore.QObject.connect(Receiver.get_receiver(),
QtCore.SIGNAL(u'mediaitem_presentation_rebuild'), self.rebuild) QtCore.SIGNAL(u'mediaitem_presentation_rebuild'), self.rebuild)
# Allow DnD from the desktop # Allow DnD from the desktop