Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Ortiz <rafael@activitycentral.com>2012-04-04 02:17:07 (GMT)
committer Rafael Ortiz <rafael@activitycentral.com>2012-04-04 02:17:07 (GMT)
commit8646fcdfa4da21e13bddb7166047d67cbabfc93d (patch)
tree5e8b859ffd7d3fe66b5fe64853934b88ae4f99a6
parenta2b2441f3cb699155a17c5ba1391c3d47b582fc4 (diff)
fixing sl #3394 by manu
-rwxr-xr-xclock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clock.py b/clock.py
index b096cfa..fdc1b50 100755
--- a/clock.py
+++ b/clock.py
@@ -541,8 +541,8 @@ class ClockFace(gtk.DrawingArea):
of the clock, radius).
"""
# Store the measures of the clock face widget
- self._center_x = int(allocation.x + allocation.width / 2.0)
- self._center_y = int(allocation.y + allocation.height / 2.0)
+ self._center_x = int(allocation.width / 2.0)
+ self._center_y = int(allocation.height / 2.0)
self._radius = max(min(int(allocation.width / 2.0), \
int(allocation.height / 2.0)) - 20, 0)
self._width = allocation.width