Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/clock.py
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2012-04-30 16:20:07 (GMT)
committer Gary Martin <gary@garycmartin.com>2012-04-30 16:20:07 (GMT)
commitaedc2c95670b51ceb1d18ec46728acc9bac5058b (patch)
tree16b76256553d5706d6f8f32133413e7509e5dc6b /clock.py
parente5fa28d6067f801ae07a7c53b7ee9a170b3d0ac3 (diff)
Clock activity draws off screen in F17 SL#3394 (Manuel Quiǹƒones)
Diffstat (limited to 'clock.py')
-rwxr-xr-xclock.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/clock.py b/clock.py
index 1893b77..825fb93 100755
--- a/clock.py
+++ b/clock.py
@@ -530,8 +530,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