gcompris r3719 - in branches/GCOMPRIS_8_3: . src/boards/python



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

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



Modified:
   branches/GCOMPRIS_8_3/   (props changed)
   branches/GCOMPRIS_8_3/ChangeLog
   branches/GCOMPRIS_8_3/src/boards/python/bargame.py

Modified: branches/GCOMPRIS_8_3/src/boards/python/bargame.py
==============================================================================
--- branches/GCOMPRIS_8_3/src/boards/python/bargame.py	(original)
+++ branches/GCOMPRIS_8_3/src/boards/python/bargame.py	Sun Feb  1 21:22:32 2009
@@ -518,15 +518,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]