diff src/scrobbler/gtkstuff.c @ 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 6f99796c8fe0
children 42a5c9d5830b
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);
 }