Ticket #1959: 0006-Don-t-display-time-in-full-letters-in-grab-hands-mod.patch

File 0006-Don-t-display-time-in-full-letters-in-grab-hands-mod.patch, 1.6 KB (added by manuq, 11 years ago)
  • clock.py

    From 132908e8cb1af9a661fb034e657ed908edafc7a5 Mon Sep 17 00:00:00 2001
    From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= <manuq@laptop.org>
    Date: Fri, 15 Feb 2013 02:10:15 -0300
    Subject: [PATCH 6/6] Don't display time in full letters in grab hands mode -
     SL #1959
    MIME-Version: 1.0
    Content-Type: text/plain; charset=UTF-8
    Content-Transfer-Encoding: 8bit
    Mail-Followup-To: <sugar-devel@lists.sugarlabs.org>
    
    The text will be inconsistent with the hands position.
    
    Signed-off-by: Manuel Quiñones <manuq@laptop.org>
    ---
     clock.py | 11 ++++++++++-
     1 file changed, 10 insertions(+), 1 deletion(-)
    
    diff --git a/clock.py b/clock.py
    index 4bf0ab6..3394675 100755
    a b class ClockActivity(activity.Activity): 
    387387        current time.
    388388        """
    389389        self._write_time = button.get_active()
    390         if self._write_time:
     390        if self._write_time and not self._grab_button.get_active():
    391391            self._time_letters.show()
    392392            self._write_and_speak(False)
    393393        else:
    class ClockActivity(activity.Activity): 
    405405        """The user clicked on the "grab hands" button to toggle
    406406        grabbing the hands.
    407407        """
     408        # Don't display time in full letters in grab hands mode, the
     409        # text will be inconsistent with the hands position
     410        if self._write_time:
     411            if not button.get_active():
     412                self._time_letters.show()
     413                self._write_and_speak(False)
     414            else:
     415                self._time_letters.hide()
     416
    408417        self._clock.change_grab_hands_mode(button.get_active())
    409418
    410419    def _minutes_changed_cb(self, clock):