Mercurial > pidgin.yaz
comparison src/gtksound.c @ 13794:ecfd8fb02c19
[gaim-migrate @ 16206]
We don't really need to pop up an error if the sound file doesn't exist
committer: Tailor Script <tailor@pidgin.im>
author | Sean Egan <seanegan@gmail.com> |
---|---|
date | Tue, 30 May 2006 17:02:27 +0000 |
parents | 164932c4d050 |
children | 6559e5c913d9 |
comparison
equal
deleted
inserted
replaced
13793:2a63b6b460cd | 13794:ecfd8fb02c19 |
---|---|
390 } else if (!strcmp(method, "beep")) { | 390 } else if (!strcmp(method, "beep")) { |
391 gdk_beep(); | 391 gdk_beep(); |
392 return; | 392 return; |
393 } | 393 } |
394 | 394 |
395 if (!g_file_test(filename, G_FILE_TEST_EXISTS)) { | 395 if (!g_file_test(filename, G_FILE_TEST_EXISTS)) |
396 char *tmp = g_strdup_printf(_("Unable to play sound because the chosen file (%s) does not exist."), filename); | 396 return; |
397 gaim_notify_error(NULL, NULL, tmp, NULL); | |
398 g_free(tmp); | |
399 return; | |
400 } | |
401 | 397 |
402 #ifndef _WIN32 | 398 #ifndef _WIN32 |
403 if (!strcmp(method, "custom")) { | 399 if (!strcmp(method, "custom")) { |
404 const char *sound_cmd; | 400 const char *sound_cmd; |
405 char *command; | 401 char *command; |