aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-ui-utils.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:50:05 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2009-01-07 00:50:05 +0800
commit58333aa17a923a435943bd09acefb44e0a13471e (patch)
tree84bee8fe32129ccc6cd1d33ccdb8674afab4bdbd /libempathy-gtk/empathy-ui-utils.c
parent6ff6694e813ff981b17af7053f2b667e2b1783bc (diff)
downloadgsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.tar
gsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.tar.gz
gsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.tar.bz2
gsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.tar.lz
gsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.tar.xz
gsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.tar.zst
gsoc2013-empathy-58333aa17a923a435943bd09acefb44e0a13471e.zip
Sanity checks for empathy_play_sounds.
svn path=/trunk/; revision=2102
Diffstat (limited to 'libempathy-gtk/empathy-ui-utils.c')
-rw-r--r--libempathy-gtk/empathy-ui-utils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-ui-utils.c b/libempathy-gtk/empathy-ui-utils.c
index 9919b343b..5f36b4b7e 100644
--- a/libempathy-gtk/empathy-ui-utils.c
+++ b/libempathy-gtk/empathy-ui-utils.c
@@ -1566,7 +1566,8 @@ empathy_sound_play (GtkWidget *widget,
EmpathySoundEntry *entry = &(sound_entries[sound_id]);
gboolean should_play = TRUE;
- g_assert (entry->sound_id == sound_id);
+ g_return_if_fail (entry->sound_id < LAST_EMPATHY_SOUND);
+ g_return_if_fail (entry->sound_id == sound_id);
if (entry->gconf_key != NULL) {
should_play = empathy_sound_pref_is_enabled (entry->gconf_key);