gcompris r3718 - in trunk: . src/boards/python



Author: bcoudoin
Date: Sun Feb  1 21:01:37 2009
New Revision: 3718
URL: http://svn.gnome.org/viewvc/gcompris?rev=3718&view=rev

Log:
	Recoded the fix 3706 to not use a coding style not supported
	by python 2.4


Modified:
   trunk/ChangeLog
   trunk/src/boards/python/bargame.py

Modified: trunk/src/boards/python/bargame.py
==============================================================================
--- trunk/src/boards/python/bargame.py	(original)
+++ trunk/src/boards/python/bargame.py	Sun Feb  1 21:01:37 2009
@@ -517,15 +517,15 @@
       self.prof_item.connect("event",self.event_play)
       # This item is clickeable and it must be seen
       self.prof_item.connect("event", gcompris.utils.item_event_focus)
-      self.prof_item.connect("event",
-                             lambda tux, event: self.set_prof(self.prof_image) \
-                               if event.type == gtk.gdk.LEAVE_NOTIFY else None  )
 
     def set_prof(self, prof_image):
       self.prof_item.set(pixbuf = gcompris.utils.load_pixmap(prof_image))
       self.prof_image = prof_image
 
     def event_play(self, item, event):
+      if event.type == gtk.gdk.LEAVE_NOTIFY:
+        self.set_prof(self.prof_image)
+
       if ((event.type != gtk.gdk.BUTTON_PRESS) or
           (event.button != 1)):
         return False



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