Ticket #3394: 0001-Set-clock-center-relative-to-ClockFace-widget-not-ac.patch

File 0001-Set-clock-center-relative-to-ClockFace-widget-not-ac.patch, 1.2 KB (added by manuq, 12 years ago)
  • clock.py

    From 5efe7c519dbbb8c1dfb3eeafe56972c251933bac Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Mon, 26 Mar 2012 15:12:29 -0300
    Subject: [PATCH Clock] Set clock center relative to ClockFace widget, not
     activity window
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    This fixes bug #3394 .
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     clock.py |    4 ++--
     1 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/clock.py b/clock.py
    index 1893b77..825fb93 100755
    a b class ClockFace(gtk.DrawingArea): 
    530530        of the clock, radius).
    531531        """
    532532        # Store the measures of the clock face widget
    533         self._center_x = int(allocation.x + allocation.width / 2.0)
    534         self._center_y = int(allocation.y + allocation.height / 2.0)
     533        self._center_x = int(allocation.width / 2.0)
     534        self._center_y = int(allocation.height / 2.0)
    535535        self._radius = max(min(int(allocation.width / 2.0), \
    536536                int(allocation.height / 2.0)) - 20, 0)
    537537        self._width = allocation.width