[gcompris/gcomprixogoo] No more make click event to loose in the followline activity.



commit cda11009bc33a227e4400c3784d803acf83f6a73
Author: Bruno Coudoin <bruno coudoin free fr>
Date:   Sun Dec 13 23:31:19 2009 +0100

    No more make click event to loose in the followline activity.

 src/followline-activity/followline.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/src/followline-activity/followline.py b/src/followline-activity/followline.py
index 64f1e5e..b3bc7f1 100644
--- a/src/followline-activity/followline.py
+++ b/src/followline-activity/followline.py
@@ -301,7 +301,10 @@ class Gcompris_followline:
     return done
 
   def loosing_item_event(self, widget, target, event=None):
-    if target.__class__ != goocanvas.Image:
+    if target.__class__ != goocanvas.Svg:
+      return False
+
+    if event.type == gtk.gdk.BUTTON_PRESS:
       return False
 
     if(self.state == "Started"):



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]