From beaba25d506b981d39340bb071dcb58baf106265 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Tue, 9 Oct 2001 18:04:13 +0000 Subject: Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyed * mail-callbacks.c (e_gnome_dialog_set_parent): Use gtk_signal_connect_while_alive here so e_gnome_dialog_parent_destroyed doesn't get called on an already-destroyed dialog. * mail-config-druid.c (*_prepare): Record which page we're currently in. (*_changed): Only update the druid buttons if we're the current page. Fixes a problem that could make it impossible to get beyond the first page of the setup wizard. svn path=/trunk/; revision=13522 --- mail/mail-callbacks.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mail/mail-callbacks.c') diff --git a/mail/mail-callbacks.c b/mail/mail-callbacks.c index d67a2bafc8..fb2729af59 100644 --- a/mail/mail-callbacks.c +++ b/mail/mail-callbacks.c @@ -85,8 +85,9 @@ static void e_gnome_dialog_set_parent (GnomeDialog *dialog, GtkWindow *parent) { gnome_dialog_set_parent (dialog, parent); - gtk_signal_connect (GTK_OBJECT (parent), "destroy", - e_gnome_dialog_parent_destroyed, dialog); + gtk_signal_connect_while_alive (GTK_OBJECT (parent), "destroy", + e_gnome_dialog_parent_destroyed, + dialog, dialog); } static GtkWidget * -- cgit v1.2.3