From: <sea...@us...> - 2006-05-30 18:26:06
|
Revision: 16207 Author: seanegan Date: 2006-05-30 11:17:34 -0700 (Tue, 30 May 2006) ViewCVS: http://svn.sourceforge.net/gaim/?rev=16207&view=rev Log Message: ----------- Actually, stick it in Debug Modified Paths: -------------- trunk/src/gtksound.c Modified: trunk/src/gtksound.c =================================================================== --- trunk/src/gtksound.c 2006-05-30 17:02:27 UTC (rev 16206) +++ trunk/src/gtksound.c 2006-05-30 18:17:34 UTC (rev 16207) @@ -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); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |