Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/sugar3/graphics/icon.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar3/graphics/icon.py b/src/sugar3/graphics/icon.py
index 3cbe953..76af718 100644
--- a/src/sugar3/graphics/icon.py
+++ b/src/sugar3/graphics/icon.py
@@ -409,9 +409,9 @@ class Icon(Gtk.Image):
allocation = self.get_allocation()
x = math.floor(allocation.x + xpad +
- (allocation.width - requisition[0]) * xalign)
+ (allocation.width - requisition.width) * xalign)
y = math.floor(allocation.y + ypad +
- (allocation.height - requisition[1]) * yalign)
+ (allocation.height - requisition.height) * yalign)
cr = self.get_window().cairo_create()