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 23:24:46 (GMT)
committer Bruno Coudoin <bcoudoin@src.gnome.org>2009-01-30 23:24:46 (GMT)
commit6d030564274526265803386d5f2bebe19de91423 (patch)
tree3b58ac671c95514976059e1ef0fa582c0dedfb20 /src/boards
parent4c62a20e98825058602dfe2c8131e9cbf779d3e0 (diff)
Prevent an evil crash bug when the kids press 2 buttons at the same time
svn path=/trunk/; revision=3708
Diffstat (limited to 'src/boards')
-rw-r--r--src/boards/menu2.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/boards/menu2.c b/src/boards/menu2.c
index c36e811..8713b54 100644
--- a/src/boards/menu2.c
+++ b/src/boards/menu2.c
@@ -661,10 +661,13 @@ item_event(GnomeCanvasItem *item, GdkEvent *event, MenuItems *menuitems)
}
else
- {
+ // This should prevent an evil crash bug
+ // when the kids press 2 buttons at the same time
+ if (event->button.button == 1)
+ {
gc_sound_play_ogg ("sounds/level.wav", NULL);
gc_board_run_next (board);
- }
+ }
break;