From f4f96ef264bb0b168c5f8c995d945cff1c046b9b Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 9 Dec 2002 01:04:39 +0000 Subject: connect ::response to gtk_widget_destroy so the dialog goes away. 2002-12-08 Chris Toshok * gui/widgets/e-addressbook-util.c (e_addressbook_error_dialog): connect ::response to gtk_widget_destroy so the dialog goes away. * gui/widgets/e-minicard-label.c (e_minicard_label_construct): don't use font_gdk anymore on EText. it doesn't exist. svn path=/trunk/; revision=19059 --- addressbook/gui/widgets/e-addressbook-util.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'addressbook/gui/widgets/e-addressbook-util.c') diff --git a/addressbook/gui/widgets/e-addressbook-util.c b/addressbook/gui/widgets/e-addressbook-util.c index 76453d5616..3d5ad8dc37 100644 --- a/addressbook/gui/widgets/e-addressbook-util.c +++ b/addressbook/gui/widgets/e-addressbook-util.c @@ -47,11 +47,16 @@ e_addressbook_error_dialog (const gchar *msg, EBookStatus status) N_("Other error") }; char *error_msg; + GtkWidget *dialog; error_msg = g_strdup_printf ("%s: %s", msg, _(status_to_string [status])); - gtk_widget_show (gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, - error_msg)); + dialog = gtk_message_dialog_new (NULL, 0, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, + error_msg); + + g_signal_connect (dialog, "response", G_CALLBACK (gtk_widget_destroy), NULL); + + gtk_widget_show (dialog); g_free (error_msg); } -- cgit v1.2.3