Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--src/boards/python/bargame.py4
2 files changed, 11 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 71ae4ff..823fdc4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,13 @@
2009-01-30 Bruno coudoin <bruno.coudoin@free.fr>
Vitali Perchonok is com gmail from vitali.pe
+ Fixed refresh issue of tux.
+
+ * src/boards/python/bargame.py:
+
+2009-01-30 Bruno coudoin <bruno.coudoin@free.fr>
+
+ Vitali Perchonok is com gmail from vitali.pe
Allow only left button on HOME.
Using left button only should prevent the menu from freezing
when pressing two or more buttons at the same time
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