diff src/sound.c @ 5436:ad445074d239

[gaim-migrate @ 5818] Another big commit. Ugh. I need a very smart regexp. Core/UI split do_error_dialog(), and soon the mail dialogs! Yay! This should work without problems at all, but standard disclaimer.. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Sun, 18 May 2003 19:59:02 +0000
parents eae93f3e46bd
children 7a64114641c3
line wrap: on
line diff
--- a/src/sound.c	Sun May 18 19:13:21 2003 +0000
+++ b/src/sound.c	Sun May 18 19:59:02 2003 +0000
@@ -49,6 +49,7 @@
 
 #include "gaim.h"
 #include "sound.h"
+#include "notify.h"
 
 #ifdef _WIN32
 #include "win32dep.h"
@@ -181,7 +182,7 @@
 
 	if (!g_file_test(filename, G_FILE_TEST_EXISTS)) {
 		char *tmp = g_strdup_printf(_("Unable to play sound because the chosen file (%s) does not exist."), filename);
-		do_error_dialog(tmp, NULL, GAIM_ERROR);
+		gaim_notify_error(NULL, NULL, tmp, NULL);
 		g_free(tmp);
 		return;
 	}
@@ -192,7 +193,10 @@
 		GError *error = NULL;
 
 		if(!sound_cmd) {
-			do_error_dialog(_("Unable to play sound because the 'Command' sound method has been chosen, but no command has been set."), NULL, GAIM_ERROR);
+			gaim_notify_error(NULL, NULL,
+							  _("Unable to play sound because the "
+								"'Command' sound method has been chosen, "
+								"but no command has been set."), NULL);
 			return;
 		}
 
@@ -200,7 +204,7 @@
 
 		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);
-			do_error_dialog(tmp, NULL, GAIM_ERROR);
+			gaim_notify_error(NULL, NULL, tmp, NULL);
 			g_free(tmp);
 			g_error_free(error);
 		}