From 8a0e64b03fe1579a47c2acbbc752a05df72fcf78 Mon Sep 17 00:00:00 2001 From: noisymime Date: Wed, 9 Jan 2008 12:42:37 +0000 Subject: [PATCH] Fixed 1 regression on menu_image --- Menu.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Menu.py b/Menu.py index e019558..44cd487 100644 --- a/Menu.py +++ b/Menu.py @@ -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.