Fixed 1 regression on menu_image

This commit is contained in:
noisymime 2008-01-09 12:42:37 +00:00
parent 6bfd9001d3
commit 8a0e64b03f
1 changed files with 2 additions and 3 deletions

View File

@ -396,13 +396,12 @@ class ListItem (clutter.Label):
#Set the image to the size in the theme
if not self.menu.menu_image_height is None:
print "changing size: " + str(self.menu.menu_image_width)
texture.set_size(self.menu.menu_image_width, self.menu.menu_image_height)
#Rotate appropriately
texture.set_depth(texture.get_width()/2)
rotation = self.menu.menu_image_rotation
texture.set_rotation(clutter.Y_AXIS, rotation, (texture.get_width()/2), 0, 0)
x_rotation = (texture.get_width())
texture.set_rotation(clutter.Y_AXIS, rotation, x_rotation, 0, 0)
self.itemTexturesGroup.add(texture)
#texture.hide() #For some reason this line is occasionally removing the pixbuf from the texture.