[Rhythmbox-devel] work around dialog hang
- From: Colin Walters <walters verbum org>
- To: rhythmbox-devel gnome org
- Subject: [Rhythmbox-devel] work around dialog hang
- Date: 29 Jan 2003 19:18:51 -0500
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]