[gcompris/gcomprixogoo] Fixed a minor race issue in watercycle.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Fixed a minor race issue in watercycle.
- Date: Thu, 23 Dec 2010 23:58:52 +0000 (UTC)
commit 8f4d0c0d664dab91de9b54f8597ebd9ac9a4ecad
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Fri Dec 24 00:57:37 2010 +0100
Fixed a minor race issue in watercycle.
src/watercycle-activity/watercycle.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/watercycle-activity/watercycle.py b/src/watercycle-activity/watercycle.py
index 683517d..98b9275 100644
--- a/src/watercycle-activity/watercycle.py
+++ b/src/watercycle-activity/watercycle.py
@@ -432,7 +432,7 @@ class Gcompris_watercycle:
def sun_item_event(self, widget, target, event=None):
if event.type == gtk.gdk.BUTTON_PRESS:
if event.button == 1:
- if not self.sun_on :
+ if not self.sun_on and not self.cloud_on:
gcompris.utils.item_focus_remove(self.sunitem, None)
gcompris.sound.play_ogg("sounds/bleep.wav")
trip_y = self.sunitem_target_y1 - self.sunitem_orig_y1
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]