[gnome-games] Fix games_sound_play_for_widget() for canberra



commit 5cc42cb98ccc558fb8f35d6650be7b3d795f13ba
Author: Christian Persch <chpe gnome org>
Date:   Thu Jun 25 19:07:36 2009 +0200

    Fix games_sound_play_for_widget() for canberra
    
    Move misplaced break from before to after the canberra call.

 libgames-support/games-sound.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/libgames-support/games-sound.c b/libgames-support/games-sound.c
index 15aed72..2b32915 100644
--- a/libgames-support/games-sound.c
+++ b/libgames-support/games-sound.c
@@ -134,12 +134,14 @@ games_sound_canberra_play (const char *sound_name,
                                    NULL);
       break;
     case GAMES_SOUND_FOR_WIDGET:
-      break;
       rv =  ca_gtk_play_for_widget (data,
                                     0,
                                     CA_PROP_MEDIA_NAME, sound_name,
                                     CA_PROP_MEDIA_FILENAME, path,
                                     NULL);
+      break;
+    default:
+      g_assert_not_reached ();
   }
 
   _games_debug_print (GAMES_DEBUG_SOUND,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]