Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGary Martin <gary@garycmartin.com>2013-04-04 14:20:32 (GMT)
committer Gary Martin <gary@garycmartin.com>2013-04-04 14:20:32 (GMT)
commit8cc731f222c8680ef095efc2827d9cf6e5188bba (patch)
treeea1405651340e3bd9f229c867a0557ac686cd3b6
parent9bf78d562a21096fb61bf85de64a15199312b958 (diff)
Make sure AP/PM UI is not triggered when grabbing clock hands over the UI.
-rwxr-xr-xclock.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/clock.py b/clock.py
index dd1b509..d3619ed 100755
--- a/clock.py
+++ b/clock.py
@@ -1095,7 +1095,8 @@ font_desc="Sans Bold 40">%d</span></markup>') % (i + 1)
break
# Toggle AM or PM if clock face AM/PM area pressed
- if mouse_x > self._center_x - self.am_pm_width / 2 and \
+ if self._hand_being_grabbed is None and \
+ mouse_x > self._center_x - self.am_pm_width / 2 and \
mouse_x < self._center_x + self.am_pm_width / 2 and \
mouse_y > self._center_y + self._radius / 3 - self.am_pm_height and \
mouse_y < self._center_y + self._radius / 3 + self.am_pm_height: