Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/src/boards
diff options
context:
space:
mode:
authorBruno Coudoin <bcoudoin@src.gnome.org>2009-01-30 22:41:30 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2009-01-30 22:41:30 (GMT)
commit4e2bee4030190a544672cf7bfcb7c980f08cddaf (patch)
tree799ae81784a6277a55a33c1d50c000623e83ac99 /src/boards
parentdfd4f40aacc7102261490d0a2e7975b77f01fd9c (diff)
Fixed refresh issue of tux.
svn path=/trunk/; revision=3706
Diffstat (limited to 'src/boards')
-rw-r--r--src/boards/python/bargame.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/boards/python/bargame.py b/src/boards/python/bargame.py
index 533eb10..27fafa2 100644
--- a/src/boards/python/bargame.py
+++ b/src/boards/python/bargame.py
@@ -517,9 +517,13 @@ class Gcompris_bargame:
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.BUTTON_PRESS) or