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): |
387 | 387 | current time. |
388 | 388 | """ |
389 | 389 | self._write_time = button.get_active() |
390 | | if self._write_time: |
| 390 | if self._write_time and not self._grab_button.get_active(): |
391 | 391 | self._time_letters.show() |
392 | 392 | self._write_and_speak(False) |
393 | 393 | else: |
… |
… |
class ClockActivity(activity.Activity): |
405 | 405 | """The user clicked on the "grab hands" button to toggle |
406 | 406 | grabbing the hands. |
407 | 407 | """ |
| 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 | |
408 | 417 | self._clock.change_grab_hands_mode(button.get_active()) |
409 | 418 | |
410 | 419 | def _minutes_changed_cb(self, clock): |