[gcompris/gcomprixogoo] Now in memory_sound activity the intro is heard.
- From: Bruno Coudoin <bcoudoin src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gcompris/gcomprixogoo] Now in memory_sound activity the intro is heard.
- Date: Sun, 24 Jan 2010 19:37:17 +0000 (UTC)
commit d279c1f7866e7caedd9ae5ed67d32c8ac6087261
Author: Bruno Coudoin <bruno coudoin free fr>
Date: Sun Jan 24 20:36:40 2010 +0100
Now in memory_sound activity the intro is heard.
https://bugzilla.gnome.org/show_bug.cgi?id=607642
src/memory-activity/memory.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
---
diff --git a/src/memory-activity/memory.c b/src/memory-activity/memory.c
index a68aa34..a91b5f2 100644
--- a/src/memory-activity/memory.c
+++ b/src/memory-activity/memory.c
@@ -891,7 +891,8 @@ static void start_board (GcomprisBoard *agcomprisBoard)
/* initial state to restore */
sound_policy = gc_sound_policy_get();
- gc_sound_policy_set(PLAY_AND_INTERRUPT);
+ // Will set the PLAY_AND_INTERRUPT policy on first
+ // user click so that intro sounds is not
gc_set_background(goo_canvas_get_root_item(gcomprisBoard->canvas),
"memory/gcompris_band.svg");
@@ -1657,6 +1658,9 @@ static gboolean item_event (GooCanvasItem *item,
if(!gcomprisBoard)
return FALSE;
+ if (currentUiMode == UIMODE_SOUND)
+ gc_sound_policy_set(PLAY_AND_INTERRUPT);
+
if (event->type != GDK_BUTTON_PRESS ||
event->button != 1)
return FALSE;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]