changeset 2297:912ab17a4bcc

try to prevent 'Xlib: unexpected async reply' on errorbox show
author Tomasz Mon <desowin@gmail.com>
date Sat, 12 Jan 2008 12:14:58 +0100
parents 19cb07bbedfa
children cfe45e6861f7
files src/scrobbler/gtkstuff.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/scrobbler/gtkstuff.c	Sat Jan 12 11:22:44 2008 +0100
+++ b/src/scrobbler/gtkstuff.c	Sat Jan 12 12:14:58 2008 +0100
@@ -39,8 +39,11 @@
 			"%s\n"),
 			errortxt);
 
+	GDK_THREADS_ENTER();
 	audacious_info_dialog(_("Scrobbler Error"),
 			tmp,
 			_("OK"), FALSE, NULL, NULL);
+	GDK_THREADS_LEAVE();
+
 	g_free(tmp);
 }