[Rhythmbox-devel] work around dialog hang



Hi,

The attached patch works around the rb_error_dialog hang.  It's against
the branch, but it should apply fairly cleanly to HEAD.

Index: rb-dialog.c
===================================================================
--- rb-dialog.c	(revision 27)
+++ rb-dialog.c	(working copy)
@@ -75,14 +75,17 @@
 
 	vsnprintf (buffer, 1024, format, args);
 
-	dialog = gtk_message_dialog_new (NULL, 0,
+	dialog = gtk_message_dialog_new (NULL,
+					 GTK_DIALOG_MODAL,
 					 type,
 					 GTK_BUTTONS_OK,
 					 buffer);
 
-	gtk_dialog_run (GTK_DIALOG (dialog));
+	g_signal_connect_swapped (GTK_OBJECT (dialog), "response",
+				  G_CALLBACK (gtk_widget_destroy),
+				  GTK_OBJECT (dialog));
 
-	gtk_widget_destroy (dialog);
+	gtk_widget_show (GTK_WIDGET (dialog));
 }
 
 GtkWidget *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]