changeset 13795:6559e5c913d9

[gaim-migrate @ 16207] Actually, stick it in Debug committer: Tailor Script <tailor@pidgin.im>
author Sean Egan <seanegan@gmail.com>
date Tue, 30 May 2006 18:17:34 +0000
parents ecfd8fb02c19
children 98e65e6a5c32
files src/gtksound.c
diffstat 1 files changed, 10 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/src/gtksound.c	Tue May 30 17:02:27 2006 +0000
+++ b/src/gtksound.c	Tue May 30 18:17:34 2006 +0000
@@ -392,8 +392,12 @@
 		return;
 	}
 
-	if (!g_file_test(filename, G_FILE_TEST_EXISTS))
+	if (!g_file_test(filename, G_FILE_TEST_EXISTS)) {
+		char *tmp = g_strdup_printf("sound file (%s) does not exist.\n", filename);
+		gaim_debug_error("gtksound", tmp);
+		g_free(tmp);
 		return;
+	}
 
 #ifndef _WIN32
 	if (!strcmp(method, "custom")) {
@@ -404,10 +408,9 @@
 		sound_cmd = gaim_prefs_get_string("/gaim/gtk/sound/command");
 
 		if (!sound_cmd || *sound_cmd == '\0') {
-			gaim_notify_error(NULL, NULL,
-							  _("Unable to play sound because the "
-								"'Command' sound method has been chosen, "
-								"but no command has been set."), NULL);
+			gaim_debug_error("gtksound",
+					 "'Command' sound method has been chosen, "
+					 "but no command has been set.");
 			return;
 		}
 
@@ -417,8 +420,8 @@
 			command = g_strdup_printf("%s %s", sound_cmd, filename);
 
 		if(!g_spawn_command_line_async(command, &error)) {
-			char *tmp = g_strdup_printf(_("Unable to play sound because the configured sound command could not be launched: %s"), error->message);
-			gaim_notify_error(NULL, NULL, tmp, NULL);
+			char *tmp = g_strdup_printf("sound command could not be launched: %s\n", error->message);
+			gaim_debug_error("gtksound", tmp);
 			g_free(tmp);
 			g_error_free(error);
 		}