From aedc2c95670b51ceb1d18ec46728acc9bac5058b Mon Sep 17 00:00:00 2001 From: Gary Martin Date: Mon, 30 Apr 2012 16:20:07 +0000 Subject: Clock activity draws off screen in F17 SL#3394 (Manuel Quiǹƒones) --- (limited to 'clock.py') 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 -- cgit v0.9.1